[SCSI] megaraid_sas: fix a bug for 64 bit arches
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Jun 2013 21:21:04 +0000 (00:21 +0300)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Jul 2013 11:14:06 +0000 (12:14 +0100)
commitfec3c1b4575431e2020c5c6502d18b281925ca45
tree45f43058e09fb9e8bed2d91e048ae2a45f26ac48
parentbeb40ea42bd65511bc275a7d58d3753835906be5
[SCSI] megaraid_sas: fix a bug for 64 bit arches

On 64 bit then -1UL and -1U are not equal, so these conditions don't
work as intended and it breaks error handling.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sumit Saxena <sumit.saxena@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid/megaraid_sas_fp.c