mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
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: 202bfdffae
("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")
This commit is contained in:
parent
ae3272ec5e
commit
99cf922692
@ -15,7 +15,7 @@
|
||||
void
|
||||
efc_d_send_prli_rsp(struct efc_node *node, u16 ox_id)
|
||||
{
|
||||
u32 rc = EFC_SCSI_CALL_COMPLETE;
|
||||
int rc = EFC_SCSI_CALL_COMPLETE;
|
||||
struct efc *efc = node->efc;
|
||||
|
||||
node->ls_acc_oxid = ox_id;
|
||||
|
Loading…
Reference in New Issue
Block a user