staging: rtl8821ae: Fixes unnecessary return warning.
authorGulsah Kose <gulsah.1004@gmail.com>
Sun, 21 Sep 2014 13:44:49 +0000 (16:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Sep 2014 20:19:38 +0000 (13:19 -0700)
This patch fixes "void function return statements are not generally
useful" checkpatch.pl warning in base.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/base.c

index dbf28cea20d2c159d40ace7a124337bbdbd57789..35c3c3bc4245c3c31b10a3cfdc34ced97083983d 100644 (file)
@@ -542,8 +542,6 @@ static void _rtl_qurey_shortpreamble_mode(struct ieee80211_hw *hw,
                return;
        else if (rate_flag & IEEE80211_TX_RC_USE_SHORT_PREAMBLE)
                tcb_desc->use_shortpreamble = true;
-
-       return;
 }
 
 static void _rtl_query_shortgi(struct ieee80211_hw *hw,