diff options
author | Robert Love <robert.w.love@intel.com> | 2012-07-06 19:40:20 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 09:58:55 +0200 |
commit | 902a45af5c9fad283a530c3bc71225fa6a8e616a (patch) | |
tree | 6c3787d210415a547e274476c1af37f3efb1c229 /drivers/input | |
parent | [SCSI] libfc: add exch timer debug info (diff) | |
download | linux-902a45af5c9fad283a530c3bc71225fa6a8e616a.tar.xz linux-902a45af5c9fad283a530c3bc71225fa6a8e616a.zip |
[SCSI] fcoe: Remove redundant 'less than zero' check
strtoul returns an 'unsigned long' so there is no
reason to check if the value is less than zero.
strtoul already checks for the '-' character deep
in its bowels. It will return an error if the user
has provided a negative value and fcoe_str_to_dev_loss
will return that error to its caller.
This patch fixes the following Coverity reported warning:
CID 703581 - NO_EFFECT Unsigned compared against 0 - This
less-than-zero comparison of an unsigned value is never true. "*val < 0UL".
drivers/scsi/fcoe/fcoe_sysfs.c:105
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions