diff options
author | Andy Grover <agrover@redhat.com> | 2012-07-12 17:34:57 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-07-16 17:35:23 -0700 |
commit | cdf88a2fe3825458c584cd751aa843ab3af6a42c (patch) | |
tree | 2e9e82a684bc104b4ebd93763686c888fda61130 /drivers/target/target_core_tpg.c | |
parent | 617a0c2eb316c4d3c8a67255f85c7cf676ab59a9 (diff) | |
download | linux-stable-cdf88a2fe3825458c584cd751aa843ab3af6a42c.tar.gz linux-stable-cdf88a2fe3825458c584cd751aa843ab3af6a42c.tar.bz2 linux-stable-cdf88a2fe3825458c584cd751aa843ab3af6a42c.zip |
target: Eliminate else using boolean logic
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_tpg.c')
-rw-r--r-- | drivers/target/target_core_tpg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c index 8bd58e284185..5ca340cff111 100644 --- a/drivers/target/target_core_tpg.c +++ b/drivers/target/target_core_tpg.c @@ -306,10 +306,8 @@ struct se_node_acl *core_tpg_check_initiator_node_acl( * TPG LUNs if the fabric is not explictly asking for * tpg_check_demo_mode_login_only() == 1. */ - if ((tpg->se_tpg_tfo->tpg_check_demo_mode_login_only != NULL) && - (tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg) == 1)) - do { ; } while (0); - else + if ((tpg->se_tpg_tfo->tpg_check_demo_mode_login_only == NULL) || + (tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg) != 1)) core_tpg_add_node_to_devs(acl, tpg); spin_lock_irq(&tpg->acl_node_lock); |