forked from Minki/linux
iscsi-target: remove unnecessary check in iscsit_setup_np error path
Found by coverity. At this point sock is non-NULL, so the check to unnecessary. Signed-off-by: Joern Engel <joern@logfs.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
1d30686da4
commit
94e16e9c59
@ -978,8 +978,7 @@ int iscsit_setup_np(
|
||||
return 0;
|
||||
fail:
|
||||
np->np_socket = NULL;
|
||||
if (sock)
|
||||
sock_release(sock);
|
||||
sock_release(sock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user