hpsa: fix bad comparison of signed with unsigned in hpsa_update_scsi_devices
authorJoe Handzik <joseph.t.handzik@hp.com>
Wed, 21 May 2014 16:16:01 +0000 (11:16 -0500)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 May 2014 10:25:12 +0000 (12:25 +0200)
commit2bbf5c7f9fe8fea2b2ccf02b9b5d2cbd997f2de1
tree31b49aa049a683b890d84a9608e9126b9766244e
parent757f5bad2b748dca6f82e660875320d156485ea5
hpsa: fix bad comparison of signed with unsigned in hpsa_update_scsi_devices

rescan_hba_mode was defined as a u8 so could never be less than zero:

        rescan_hba_mode = hpsa_hba_mode_enabled(h);
        if (rescan_hba_mode < 0)
                goto out;

Signed-off-by: Joe Handzik <joseph.t.handzik@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/hpsa.c