]> git.baikalelectronics.ru Git - kernel.git/commit
IB/iser: Fix redundant pointer check in dealloc flow
authorSagi Grimberg <sagig@mellanox.com>
Thu, 15 Aug 2013 14:04:42 +0000 (17:04 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 3 Sep 2013 04:26:16 +0000 (21:26 -0700)
commit4b79e1fca5b7c7da05eb24aaee5ff800291724b6
treef64bfb424ec93a2d2c558e44d2612ec6ba169349
parent73e3ed95aaf3278269f1a47f2330c082c045d9e7
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 <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_initiator.c