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:
Родитель
1d30686da4
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче