Skip to content

Commit dd689ed

Browse files
Jiapeng Chongmartinkpetersen
authored andcommitted
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 <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent e8c2da7 commit dd689ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/ses.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int ses_recv_diag(struct scsi_device *sdev, int page_code,
118118
static int ses_send_diag(struct scsi_device *sdev, int page_code,
119119
void *buf, int bufflen)
120120
{
121-
u32 result;
121+
int result;
122122

123123
unsigned char cmd[] = {
124124
SEND_DIAGNOSTIC,

0 commit comments

Comments
 (0)