target: Remove extra percpu_ref_init
authorAndy Grover <agrover@redhat.com>
Tue, 26 Nov 2013 19:49:24 +0000 (11:49 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 19 Dec 2013 22:49:54 +0000 (14:49 -0800)
commitde06875f089678f4f9f1e8d5e1421fb0ceab12d0
tree20f4ce70000325ea696bad924bc8eed70e6134e1
parent95cadace8f3959282e76ebf8b382bd0930807d2c
target: Remove extra percpu_ref_init

lun->lun_ref is also initialized in core_tpg_post_addlun, so it doesn't
need to be done in core_tpg_setup_virtual_lun0.

(nab: Drop left-over percpu_ref_cancel_init in failure path)

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_tpg.c