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>
This commit is contained in:
Xiongfeng Wang 2020-04-29 20:10:18 +08:00 коммит произвёл Martin K. Petersen
Родитель 4a4c0cfb4b
Коммит 6f41f08c88
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1120,7 +1120,7 @@ static struct adpt_device* adpt_find_device(adpt_hba* pHba, u32 chan, u32 id, u6
{
struct adpt_device* d;
if(chan < 0 || chan >= MAX_CHANNEL)
if (chan >= MAX_CHANNEL)
return NULL;
d = pHba->channel[chan].device[id];