]> err.no Git - linux-2.6/blobdiff - drivers/scsi/aacraid/commctrl.c
[SCSI] aacraid: resolve compiler warnings using ptrdiff_t
[linux-2.6] / drivers / scsi / aacraid / commctrl.c
index 987e35e4078e12da16ba0a58e2625af268e87835..72b0393b459675a0fbb9cc6c4ba0e1df07104183 100644 (file)
@@ -391,10 +391,8 @@ static int close_getadapter_fib(struct aac_dev * dev, void __user *arg)
                /*
                 *      Extract the fibctx from the input parameters
                 */
-               if (fibctx->unique == (u32)(unsigned long)arg) {   
-                       /* We found a winner */
+               if (fibctx->unique == (u32)(ptrdiff_t)arg) /* We found a winner */
                        break;
-               }
                entry = entry->next;
                fibctx = NULL;
        }