fcoe: unsigned long can never be negative
Subsystems (2)
PATCH 1/1 fcoe: unsigned long can never be negative
From: Alan Cox <[email protected]>
Coverity id: 703581
Signed-off-by Alan Cox <[email protected]>
---
drivers/scsi/fcoe/fcoe_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/fcoe/fcoe_sysfs.c +1 -1
@@ -102,7 +102,7 @@ static int fcoe_str_to_dev_loss(const char *buf, unsigned long *val)int ret; ret =kstrtoul (buf,0 , val); -if (ret || *val <0 ) +if (ret)return -EINVAL ;/* * Check for overflow; dev_loss_tmo is u32