]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: fc: remove redundant check of an unsigned long being less than zero
authorColin Ian King <colin.king@canonical.com>
Fri, 14 Apr 2017 13:58:02 +0000 (14:58 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 19 Apr 2017 01:52:09 +0000 (21:52 -0400)
commiteea422709fd89aec27be408f451557ebedd19f11
treed58b9d733a74e5b21465dae2df2f816a47416777
parent5c66d9393f583778e8dc1ee6a69c5bbe9ab28eaa
scsi: fc: remove redundant check of an unsigned long being less than zero

The check for an unsigned long being less than zero is always false so
it is a redundant check and can be removed.

Detected by static analysis with by PVS-Studio

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c