staging/wlan-ng fix small coding style issue
PATCH 1/1 staging/wlan-ng fix small coding style issue
Signed-off-by Denis Pithon <[email protected]>
--- drivers/staging/wlan-ng/prism2usb.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/staging/wlan-ng/prism2usb.c +2 -0
@@ -293,6 +293,7 @@ static int prism2sta_suspend(struct usb_interface *interface,hfa384x_t *hw =NULL ;wlandevice_t *wlandev; wlandev = (wlandevice_t *)usb_get_intfdata (interface); +if (!wlandev)return -ENODEV ;
@@ -315,6 +316,7 @@ static int prism2sta_resume(struct usb_interface *interface)hfa384x_t *hw =NULL ;wlandevice_t *wlandev; wlandev = (wlandevice_t *)usb_get_intfdata (interface); +if (!wlandev)return -ENODEV ;
Signature · 1 line
1.9.0
Quoted 1 line · Denis Pithon
Signed-off-by Denis Pithon <[email protected]>
Changeglog sucks. It doesn't even exist, actually. What coding style issue did you fix?
Quoted 9 lines
--- drivers/staging/wlan-ng/prism2usb.c | 2 ++ 1 file changed, 2 insertions(+)drivers/staging/wlan-ng/prism2usb.c +0
-0
drivers/staging/wlan-ng/prism2usb.c static int prism2sta_suspend(struct usb_interface *interface, · line 298
Quoted 6 lines
drivers/staging/wlan-ng/prism2usb.c +1
-0@@ -293,6 +293,7 @@ static int prism2sta_suspend(struct usb_interface *interface,hfa384x_t *hw =NULL ;wlandevice_t *wlandev; wlandev = (wlandevice_t *)usb_get_intfdata (interface); +if (!wlandev)return -ENODEV ;
The blank line should go be one line earlier.
wlandevice_t *wlandev; [blank] wlandev = (wlandevice_t *) usb_get_intfdata(interface);
drivers/staging/wlan-ng/prism2usb.c static int prism2sta_resume(struct usb_interface *interface) · line 319
Quoted 6 lines
drivers/staging/wlan-ng/prism2usb.c +1
-0@@ -315,6 +316,7 @@ static int prism2sta_resume(struct usb_interface *interface)hfa384x_t *hw =NULL ;wlandevice_t *wlandev; wlandev = (wlandevice_t *)usb_get_intfdata (interface); +
Same.
drivers/staging/wlan-ng/prism2usb.c static int prism2sta_resume(struct usb_interface *interface) · line 321
Quoted 2 lines
drivers/staging/wlan-ng/prism2usb.c +0
-0if (!wlandev)return -ENODEV ;
regards,
dan carpenter