]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi-target: remove always-true conditions
authorJoern Engel <joern@logfs.org>
Tue, 2 Sep 2014 21:49:50 +0000 (17:49 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 17 Sep 2014 20:19:16 +0000 (13:19 -0700)
commit771e1b369669674a4e79f3b6d6dfe6264df0aae3
tree2e992dd541b91d8d51bea274d79830455d00a6d1
parentd58845ccbc61f27ea1ffd472cbbff62f91e26221
iscsi-target: remove always-true conditions

Found by coverity.  InitiatorName and InitiatorAlias are static arrays
and therefore always non-NULL.  At some point in the past they may have
been dynamically allocated, but for current code the condition is
useless.  If the intent was to check InitiatorName[0] instead, I cannot
find a use for that either.  Let's get rid of it.

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