Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94e16e9c authored by Joern Engel's avatar Joern Engel Committed by Nicholas Bellinger
Browse files

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: default avatarJoern Engel <joern@logfs.org>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 1d30686d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -978,7 +978,6 @@ int iscsit_setup_np(
	return 0;
fail:
	np->np_socket = NULL;
	if (sock)
	sock_release(sock);
	return ret;
}