target: refactor core_update_device_list_for_node()
authorAndy Grover <agrover@redhat.com>
Fri, 13 Jul 2012 00:34:58 +0000 (17:34 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:24 +0000 (17:35 -0700)
commite80ac6c4cc073d54daef8ba4ced88347d130d314
treedfa41df2e34fc759e3b9c1b47efec0fdc73799c3
parentcdf88a2fe3825458c584cd751aa843ab3af6a42c
target: refactor core_update_device_list_for_node()

Code was almost entirely divided based on value of bool param "enable".

Split it into two functions.

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