Commit 7c82532d authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen
Browse files

scsi: libcxgbi: remove redundant check and close on csk



csk is always null on the error return path and so the non-null check
and call to cxgbi_sock_closed on csk is redundant and can be removed.

Detected by: CoverityScan CID#114329 ("Logically dead code")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarVarun Prakash <varun@chelsio.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7f6ab569
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -688,8 +688,6 @@ rel_neigh:

rel_rt:
	ip_rt_put(rt);
	if (csk)
		cxgbi_sock_closed(csk);
err_out:
	return ERR_PTR(err);
}