hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/staging/wlan-ng/prism2usb.c
....@@ -144,7 +144,7 @@
144144 {
145145 struct wlandevice *wlandev;
146146
147
- wlandev = (struct wlandevice *)usb_get_intfdata(interface);
147
+ wlandev = usb_get_intfdata(interface);
148148 if (wlandev) {
149149 LIST_HEAD(cleanlist);
150150 struct hfa384x_usbctlx *ctlx, *temp;
....@@ -230,7 +230,7 @@
230230 struct hfa384x *hw = NULL;
231231 struct wlandevice *wlandev;
232232
233
- wlandev = (struct wlandevice *)usb_get_intfdata(interface);
233
+ wlandev = usb_get_intfdata(interface);
234234 if (!wlandev)
235235 return -ENODEV;
236236
....@@ -253,7 +253,7 @@
253253 struct hfa384x *hw = NULL;
254254 struct wlandevice *wlandev;
255255
256
- wlandev = (struct wlandevice *)usb_get_intfdata(interface);
256
+ wlandev = usb_get_intfdata(interface);
257257 if (!wlandev)
258258 return -ENODEV;
259259