mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
IB/iser: Fix redundant pointer check in dealloc flow
This bug was discovered by Smatch static checker run by Dan Carpenter. If in free_rx_descriptors(), rx_descs are not NULL then the iser device is definately not NULL, so no need to check it before dereferencing it. Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
27ae2d1ea5
commit
2e02d653fe
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ void iser_free_rx_descriptors(struct iser_conn *ib_conn)
|
|||
if (!ib_conn->rx_descs)
|
||||
goto free_login_buf;
|
||||
|
||||
if (device && device->iser_free_rdma_reg_res)
|
||||
if (device->iser_free_rdma_reg_res)
|
||||
device->iser_free_rdma_reg_res(ib_conn);
|
||||
|
||||
rx_desc = ib_conn->rx_descs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue