scsi: dpt_i2o: remove redundant null check on array device
authorColin Ian King <colin.king@canonical.com>
Wed, 9 Aug 2017 10:17:41 +0000 (11:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Aug 2017 23:55:35 +0000 (19:55 -0400)
commit0b7250f93f02a8aaa80146c34c08e4596f0a1e1d
tree5620a2073efd42c66e3042c0690c56e4e7757f64
parent0b2ce198fa3a6a0c885e888010b7278778df2dab
scsi: dpt_i2o: remove redundant null check on array device

The null check on pHba->channel[chan].device is redundant because
device is an array and hence can never be null. Remove the check.

Detected by CoverityScan, CID#115362 ("Array compared against 0")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c