]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srpt: Fix ERR_PTR() vs. NULL checking confusion
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 4 Nov 2011 18:27:32 +0000 (21:27 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 3 Feb 2012 17:07:00 +0000 (09:07 -0800)
commitfe40c0fdd7cbce2cc49b5a1a115e186ebfac2bbf
tree31e6e0efc8b66c2212f834aeaa041052febd5076
parentc6b2eca1899cbc3d8b65ecc3d5190875467b0ad9
IB/srpt: Fix ERR_PTR() vs. NULL checking confusion

transport_init_session() and target_fabric_configfs_init() don't
return NULL pointers, they only return ERR_PTRs or valid pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srpt/ib_srpt.c