diff options
author | Salyzyn, Mark <mark_salyzyn@adaptec.com> | 2007-03-27 15:07:28 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-04-01 11:25:21 -0400 |
commit | 4dfb7cbef856689caebd0f498dbd140d1b79954f (patch) | |
tree | ce9ee4971a82f8b15e9e4c03b0beef4138c1deb2 /drivers/scsi/aacraid/commctrl.c | |
parent | 10c9a017f1bd84a7aedaea7029cd5224863197db (diff) |
[SCSI] aacraid: resolve compiler warnings using ptrdiff_t
Unsigned long is not always the same size as a pointer, namely on 32 bit
systems with 64 bit address space. Ptrdiff_t is the same size as a
pointer in all configurations. By using ptrdiff_t we can mitigate the
warning messages on these configurations. There should be no side
effects of this patch.
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/commctrl.c')
-rw-r--r-- | drivers/scsi/aacraid/commctrl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index 987e35e4078e..72b0393b4596 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c | |||
@@ -391,10 +391,8 @@ static int close_getadapter_fib(struct aac_dev * dev, void __user *arg) | |||
391 | /* | 391 | /* |
392 | * Extract the fibctx from the input parameters | 392 | * Extract the fibctx from the input parameters |
393 | */ | 393 | */ |
394 | if (fibctx->unique == (u32)(unsigned long)arg) { | 394 | if (fibctx->unique == (u32)(ptrdiff_t)arg) /* We found a winner */ |
395 | /* We found a winner */ | ||
396 | break; | 395 | break; |
397 | } | ||
398 | entry = entry->next; | 396 | entry = entry->next; |
399 | fibctx = NULL; | 397 | fibctx = NULL; |
400 | } | 398 | } |