scsi: elx: libefc: Fix less than zero comparison of a unsigned int
authorColin Ian King <colin.king@canonical.com>
Wed, 16 Jun 2021 17:04:01 +0000 (18:04 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 19 Jun 2021 03:01:04 +0000 (23:01 -0400)
commit99cf922692021823bd2f87aa307fa6cb28e91ad1
tree0f7746836a4aa8efb4ecc5d7a3009f57a63817b8
parentae3272ec5e9772de143b6326b2c3a61529786ddd
scsi: elx: libefc: Fix less than zero comparison of a unsigned int

The comparison of the u32 variable rc to less than zero always false
because it is unsigned. Fix this by making it an int.

Link: https://lore.kernel.org/r/20210616170401.15831-1-colin.king@canonical.com
Fixes: 202bfdffae27 ("scsi: elx: libefc: FC node ELS and state handling")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unsigned compared against 0")
drivers/scsi/elx/libefc/efc_device.c