Commit eaa4e501 authored by Tim Collier's avatar Tim Collier Committed by Greg Kroah-Hartman

staging: wlan-ng: remove unnecessary casts from prism2usb.c

usb_get_intfdata returns a void pointer. It is not necessary to
explicitly cast to the desired type and removing the casts is
consistent with most use of usb_get_intfdata.
Signed-off-by: default avatarTim Collier <osdevtc@gmail.com>
Link: https://lore.kernel.org/r/20191025084126.9181-2-osdevtc@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48d357f0
...@@ -137,7 +137,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface) ...@@ -137,7 +137,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface)
{ {
struct wlandevice *wlandev; struct wlandevice *wlandev;
wlandev = (struct wlandevice *)usb_get_intfdata(interface); wlandev = usb_get_intfdata(interface);
if (wlandev) { if (wlandev) {
LIST_HEAD(cleanlist); LIST_HEAD(cleanlist);
struct hfa384x_usbctlx *ctlx, *temp; struct hfa384x_usbctlx *ctlx, *temp;
...@@ -222,7 +222,7 @@ static int prism2sta_suspend(struct usb_interface *interface, ...@@ -222,7 +222,7 @@ static int prism2sta_suspend(struct usb_interface *interface,
struct hfa384x *hw = NULL; struct hfa384x *hw = NULL;
struct wlandevice *wlandev; struct wlandevice *wlandev;
wlandev = (struct wlandevice *)usb_get_intfdata(interface); wlandev = usb_get_intfdata(interface);
if (!wlandev) if (!wlandev)
return -ENODEV; return -ENODEV;
...@@ -245,7 +245,7 @@ static int prism2sta_resume(struct usb_interface *interface) ...@@ -245,7 +245,7 @@ static int prism2sta_resume(struct usb_interface *interface)
struct hfa384x *hw = NULL; struct hfa384x *hw = NULL;
struct wlandevice *wlandev; struct wlandevice *wlandev;
wlandev = (struct wlandevice *)usb_get_intfdata(interface); wlandev = usb_get_intfdata(interface);
if (!wlandev) if (!wlandev)
return -ENODEV; return -ENODEV;
......
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