mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 16:40:22 +00:00
iscsi_target: Remove redundant null check before kfree
kfree on null pointer is a no-op. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
3a41d85feb
commit
b07c28aab5
@ -1118,10 +1118,8 @@ new_sess_out:
|
||||
idr_remove(&sess_idr, conn->sess->session_index);
|
||||
spin_unlock_bh(&sess_idr_lock);
|
||||
}
|
||||
if (conn->sess->sess_ops)
|
||||
kfree(conn->sess->sess_ops);
|
||||
if (conn->sess)
|
||||
kfree(conn->sess);
|
||||
kfree(conn->sess->sess_ops);
|
||||
kfree(conn->sess);
|
||||
old_sess_out:
|
||||
iscsi_stop_login_thread_timer(np);
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user