staging: rtl8192e: Remove unneeded void return
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Tue, 30 Sep 2014 21:21:54 +0000 (00:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 18:56:43 +0000 (11:56 -0700)
Fixes "void function return statements are not generally
useful"checkpatch.pl warning

Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_tx.c

index 41bb8c21144c0dd317e3b41d54573f2fbe51917f..4f68ffe41475660f293299a613d19f8affff0771 100644 (file)
@@ -354,7 +354,6 @@ FORCED_AGG_SETTING:
                tcb_desc->ampdu_factor = 0;
                break;
        }
-       return;
 }
 
 static void rtllib_qurey_ShortPreambleMode(struct rtllib_device *ieee,
@@ -366,7 +365,6 @@ static void rtllib_qurey_ShortPreambleMode(struct rtllib_device *ieee,
        else if (ieee->current_network.capability &
                 WLAN_CAPABILITY_SHORT_PREAMBLE)
                tcb_desc->bUseShortPreamble = true;
-       return;
 }
 
 static void rtllib_query_HTCapShortGI(struct rtllib_device *ieee,
@@ -408,7 +406,6 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
        if (pHTInfo->bCurBW40MHz && pHTInfo->bCurTxBW40MHz &&
            !ieee->bandwidth_auto_switch.bforced_tx20Mhz)
                tcb_desc->bPacketBW = true;
-       return;
 }
 
 static void rtllib_query_protectionmode(struct rtllib_device *ieee,