Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d453b9e authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

[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: default avatarAlan Cox <alan@redhat.com>
Acked-by: default avatarPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5d68dfcf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;