[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1396271603-12142-1-git-send-email-denis.pithon@gmail.com>
Date: Mon, 31 Mar 2014 15:13:23 +0200
From: Denis Pithon <denis.pithon@...il.com>
To: gregkh@...uxfoundation.org
Cc: khoroshilov@...ras.ru, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging/wlan-ng fix small coding style issue
Signed-off-by: Denis Pithon <denis.pithon@...il.com>
---
drivers/staging/wlan-ng/prism2usb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/wlan-ng/prism2usb.c b/drivers/staging/wlan-ng/prism2usb.c
index 4739c14..ccb2c2e 100644
--- a/drivers/staging/wlan-ng/prism2usb.c
+++ b/drivers/staging/wlan-ng/prism2usb.c
@@ -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;
--
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists