mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
1d30686da4
commit
94e16e9c59
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue