diff options
Diffstat (limited to 'drivers/target')
-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( | |||
306 | * TPG LUNs if the fabric is not explictly asking for | 306 | * TPG LUNs if the fabric is not explictly asking for |
307 | * tpg_check_demo_mode_login_only() == 1. | 307 | * tpg_check_demo_mode_login_only() == 1. |
308 | */ | 308 | */ |
309 | if ((tpg->se_tpg_tfo->tpg_check_demo_mode_login_only != NULL) && | 309 | if ((tpg->se_tpg_tfo->tpg_check_demo_mode_login_only == NULL) || |
310 | (tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg) == 1)) | 310 | (tpg->se_tpg_tfo->tpg_check_demo_mode_login_only(tpg) != 1)) |
311 | do { ; } while (0); | ||
312 | else | ||
313 | core_tpg_add_node_to_devs(acl, tpg); | 311 | core_tpg_add_node_to_devs(acl, tpg); |
314 | 312 | ||
315 | spin_lock_irq(&tpg->acl_node_lock); | 313 | spin_lock_irq(&tpg->acl_node_lock); |