Commit 8350e155 authored by Joe Perches's avatar Joe Perches Committed by Mauro Carvalho Chehab

[media] media: Remove unnecessary casts of usb_get_intfdata

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 91245443
...@@ -288,8 +288,7 @@ static int smsusb1_setmode(void *context, int mode) ...@@ -288,8 +288,7 @@ static int smsusb1_setmode(void *context, int mode)
static void smsusb_term_device(struct usb_interface *intf) static void smsusb_term_device(struct usb_interface *intf)
{ {
struct smsusb_device_t *dev = struct smsusb_device_t *dev = usb_get_intfdata(intf);
(struct smsusb_device_t *) usb_get_intfdata(intf);
if (dev) { if (dev) {
smsusb_stop_streaming(dev); smsusb_stop_streaming(dev);
...@@ -445,8 +444,7 @@ static void smsusb_disconnect(struct usb_interface *intf) ...@@ -445,8 +444,7 @@ static void smsusb_disconnect(struct usb_interface *intf)
static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg)
{ {
struct smsusb_device_t *dev = struct smsusb_device_t *dev = usb_get_intfdata(intf);
(struct smsusb_device_t *)usb_get_intfdata(intf);
printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event); printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event);
smsusb_stop_streaming(dev); smsusb_stop_streaming(dev);
return 0; return 0;
...@@ -455,8 +453,7 @@ static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) ...@@ -455,8 +453,7 @@ static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg)
static int smsusb_resume(struct usb_interface *intf) static int smsusb_resume(struct usb_interface *intf)
{ {
int rc, i; int rc, i;
struct smsusb_device_t *dev = struct smsusb_device_t *dev = usb_get_intfdata(intf);
(struct smsusb_device_t *)usb_get_intfdata(intf);
struct usb_device *udev = interface_to_usbdev(intf); struct usb_device *udev = interface_to_usbdev(intf);
printk(KERN_INFO "%s: Entering.\n", __func__); printk(KERN_INFO "%s: Entering.\n", __func__);
......
...@@ -2274,7 +2274,7 @@ static int __devinit imon_probe(struct usb_interface *interface, ...@@ -2274,7 +2274,7 @@ static int __devinit imon_probe(struct usb_interface *interface,
mutex_lock(&driver_lock); mutex_lock(&driver_lock);
first_if = usb_ifnum_to_if(usbdev, 0); first_if = usb_ifnum_to_if(usbdev, 0);
first_if_ctx = (struct imon_context *)usb_get_intfdata(first_if); first_if_ctx = usb_get_intfdata(first_if);
if (ifnum == 0) { if (ifnum == 0) {
ictx = imon_init_intf0(interface); ictx = imon_init_intf0(interface);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment