IB/srp: Clean up error path in srp_create_target_ib()
authorRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 23:07:59 +0000 (15:07 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 2 Mar 2010 07:51:39 +0000 (23:51 -0800)
commitda9d2f07306fc29a2f10885c2b0a463f3863c365
tree3057204face593f4859aab958bf93e4fe9b1c98e
parent9c03dc9f19351edf25c1107e3cfd3cc538c7ab9e
IB/srp: Clean up error path in srp_create_target_ib()

Instead of repeating the error unwinding steps in each place an error
can be detected, use the common idiom of gotos into an error flow.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c