]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: dpt_i2o: Remove always false 'chan < 0' statement
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Wed, 29 Apr 2020 12:10:18 +0000 (20:10 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 30 Apr 2020 02:14:23 +0000 (22:14 -0400)
commite8a8489fa7f706c0446de17cfa02be7cc314a439
tree9e70b8a68ab18ec9e213e7bbb7210540429d0c19
parent3fc4c2e6b5f0fa0c33756d10cea47129cf2edf75
scsi: dpt_i2o: Remove always false 'chan < 0' statement

The channel index is represented by an unsigned variable 'u32 chan'. We
don't need to check whether it is less than zero, the 'chan < 0' statement
is always false. Remove it.

Link: https://lore.kernel.org/r/1588162218-61757-1-git-send-email-wangxiongfeng2@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c