]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ses: Fix unsigned comparison with less than zero
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 24 Sep 2021 09:51:53 +0000 (17:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 29 Sep 2021 02:42:06 +0000 (22:42 -0400)
commitfd233b9fdb651092344769c5f2bceec9e55f4d72
tree423b23431f5fa0570f807966cdd465104f97c2e0
parent0dc67a60faeff6d89dc4c42b02d2ac44ddaea43c
scsi: ses: Fix unsigned comparison with less than zero

Fix the following coccicheck warning:

./drivers/scsi/ses.c:137:10-16: WARNING: Unsigned expression compared
with zero: result > 0.

Link: https://lore.kernel.org/r/1632477113-90378-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ses.c