diff mbox

[Resend,OPW,kernel] Staging: rtl8712: remove void function return; statement

Message ID 20140921000820.GA3578@Tapasweni.Pathak
State New, archived
Headers show

Commit Message

Tapasweni Pathak Sept. 21, 2014, 12:08 a.m. UTC
This patch fixes checkpatch.pl warning in files of rtl8712
WARNING : void function return statement are not generally useful

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
---
 drivers/staging/rtl8712/rtl871x_security.c |    1 -
 drivers/staging/rtl8712/usb_intf.c         |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)

--
1.7.0.4
diff mbox

Patch

diff --git a/drivers/staging/rtl8712/rtl871x_security.c b/drivers/staging/rtl8712/rtl871x_security.c
index 0912f52..8faf22b 100644
--- a/drivers/staging/rtl8712/rtl871x_security.c
+++ b/drivers/staging/rtl8712/rtl871x_security.c
@@ -252,7 +252,6 @@  void r8712_wep_decrypt(struct _adapter  *padapter, u8 *precvframe)
 		/* calculate icv and compare the icv */
 		*((u32 *)crc) = cpu_to_le32(getcrc32(payload, length - 4));
 	}
-	return;
 }

 /* 3 =====TKIP related===== */
diff --git a/drivers/staging/rtl8712/usb_intf.c b/drivers/staging/rtl8712/usb_intf.c
index beff69b..89a6e3d 100644
--- a/drivers/staging/rtl8712/usb_intf.c
+++ b/drivers/staging/rtl8712/usb_intf.c
@@ -635,7 +635,6 @@  static void r871xu_dev_remove(struct usb_interface *pusb_intf)
 	 * Reset usb port for sitesurvey fail issue. */
 	if (udev->state != USB_STATE_NOTATTACHED)
 		usb_reset_device(udev);
-	return;
 }

 static int __init r8712u_drv_entry(void)