libfcoe: remove and unneeded check
Subsystems (3)
PATCH 1/1 libfcoe: remove and unneeded check
Unsigned values are never less than zero. We check for an upper bound later so that's OK too.
Signed-off-by Dan Carpenter <[email protected]>
drivers/scsi/fcoe/fcoe_sysfs.c +2 -2
@@ -102,8 +102,8 @@ static int fcoe_str_to_dev_loss(const char *buf, unsigned long *val)int ret; ret =kstrtoul (buf,0 , val); -if (ret || *val <0 ) -return -EINVAL ; +if (ret) +return ret;/* * Check for overflow; dev_loss_tmo is u32 */