You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] media: Remove unnecessary casts of usb_get_intfdata
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
9124544320
commit
8350e1551c
@@ -288,8 +288,7 @@ static int smsusb1_setmode(void *context, int mode)
|
||||
|
||||
static void smsusb_term_device(struct usb_interface *intf)
|
||||
{
|
||||
struct smsusb_device_t *dev =
|
||||
(struct smsusb_device_t *) usb_get_intfdata(intf);
|
||||
struct smsusb_device_t *dev = usb_get_intfdata(intf);
|
||||
|
||||
if (dev) {
|
||||
smsusb_stop_streaming(dev);
|
||||
@@ -445,8 +444,7 @@ static void smsusb_disconnect(struct usb_interface *intf)
|
||||
|
||||
static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg)
|
||||
{
|
||||
struct smsusb_device_t *dev =
|
||||
(struct smsusb_device_t *)usb_get_intfdata(intf);
|
||||
struct smsusb_device_t *dev = usb_get_intfdata(intf);
|
||||
printk(KERN_INFO "%s: Entering status %d.\n", __func__, msg.event);
|
||||
smsusb_stop_streaming(dev);
|
||||
return 0;
|
||||
@@ -455,8 +453,7 @@ static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg)
|
||||
static int smsusb_resume(struct usb_interface *intf)
|
||||
{
|
||||
int rc, i;
|
||||
struct smsusb_device_t *dev =
|
||||
(struct smsusb_device_t *)usb_get_intfdata(intf);
|
||||
struct smsusb_device_t *dev = usb_get_intfdata(intf);
|
||||
struct usb_device *udev = interface_to_usbdev(intf);
|
||||
|
||||
printk(KERN_INFO "%s: Entering.\n", __func__);
|
||||
|
||||
Reference in New Issue
Block a user