target: simplify target_fabric_make_lun error path
authorJoern Engel <joern@logfs.org>
Wed, 17 Sep 2014 22:11:28 +0000 (15:11 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 17 Sep 2014 22:11:28 +0000 (15:11 -0700)
commit1481473b5656d8841f63c455594f340306c22cb0
treeb721b2ad6def22494160da9ae3d68bf883d217f1
parentda0abaee4793bac4047b3bdfd221fc54850bbf5f
target: simplify target_fabric_make_lun error path

Coverity complained that lun_cg has been dereferenced in all paths
leading to NULL check.  It didn't mention that only a single path could
lead there and the code can be simplified even further.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_fabric_configfs.c