From: gregkh@suse.de Date: Thu, 24 Mar 2005 08:44:28 +0000 (-0800) Subject: [PATCH] USB: fix build warning in usb core as pointed out by Andrew. X-Git-Tag: v2.6.13-rc1~68^2~583^2^2~34 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff710710eae73990dd484ea8e37dba636452502b;p=linux-2.6 [PATCH] USB: fix build warning in usb core as pointed out by Andrew. Signed-off-by: Greg Kroah-Hartman Index: gregkh-2.6/drivers/usb/core/usb.c =================================================================== --- diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index a64974397e..230839ac5c 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -492,7 +492,7 @@ static int __find_interface(struct device * dev, void * data) */ struct usb_interface *usb_find_interface(struct usb_driver *drv, int minor) { - struct usb_interface *intf = (struct usb_interface *)minor; + struct usb_interface *intf = (struct usb_interface *)(long)minor; int ret; ret = driver_for_each_device(&drv->driver, NULL, &intf, __find_interface);