Staging: rtl8712: remove void function return; statement
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Sun, 21 Sep 2014 00:08:20 +0000 (05:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 15:04:57 +0000 (08:04 -0700)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_security.c
drivers/staging/rtl8712/usb_intf.c

index 0912f52def99d9942cdb93aa2f177bac6174405f..8faf22bb7c90137983fd80c1819082a02af6217b 100644 (file)
@@ -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===== */
index beff69b3ff0c5b4b8eb574d5697e11ea3b22586f..89a6e3dfb237eb4e31fa3d27ae3889438d1bc81d 100644 (file)
@@ -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)