Skip to content

Commit

Permalink
[PATCH] USB: libusual: fix warning on 64bit boxes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent 5d68dfc commit 6d453b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/storage/libusual.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6d453b9

Please sign in to comment.