summaryrefslogtreecommitdiffstats
path: root/drivers/usb/storage
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-01-17 15:39:25 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-31 17:23:43 -0800
commit6d453b9e3007da2c6cd8b71883505c381f0e0004 (patch)
treeef4d11da426e7fe9be62e44785833964c554b535 /drivers/usb/storage
parent5d68dfcf3a1c2c4a74e6f08362ade5b97637147d (diff)
downloadop-kernel-dev-6d453b9e3007da2c6cd8b71883505c381f0e0004.zip
op-kernel-dev-6d453b9e3007da2c6cd8b71883505c381f0e0004.tar.gz
[PATCH] USB: libusual: fix warning on 64bit boxes
We cast an int to a void * which not unreasonably makes gcc suspicious. We don't actually care what type "type" is so use unsigned long so it matches pointer length on all platforms. Signed-off-by: Alan Cox <alan@redhat.com> Acked-by: Pete Zaitcev <zaitcev@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r--drivers/usb/storage/libusual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/libusual.c b/drivers/usb/storage/libusual.c
index b28151d..b1ec4a7 100644
--- a/drivers/usb/storage/libusual.c
+++ b/drivers/usb/storage/libusual.c
@@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(usb_usual_check_type);
static int usu_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
- int type;
+ unsigned long type;
int rc;
unsigned long flags;
OpenPOWER on IntegriCloud