]> git.karo-electronics.de Git - karo-tx-linux.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)
commit3af336376f77859da84bb1156ef29d5337b316a9
tree31e6e0efc8b66c2212f834aeaa041052febd5076
parentebfded8c4b34caea450709ce467e67483fa4d8df
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