mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
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: Colin Ian King <colin.king@canonical.com> Acked-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
7f6ab5693f
commit
7c82532dcc
@ -688,8 +688,6 @@ rel_neigh:
|
|||||||
|
|
||||||
rel_rt:
|
rel_rt:
|
||||||
ip_rt_put(rt);
|
ip_rt_put(rt);
|
||||||
if (csk)
|
|
||||||
cxgbi_sock_closed(csk);
|
|
||||||
err_out:
|
err_out:
|
||||||
return ERR_PTR(err);
|
return ERR_PTR(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user