staging: rtl8192u: remove break after return
authorSupriya Karanth <iskaranth@gmail.com>
Fri, 13 Mar 2015 07:58:42 +0000 (16:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 14:56:45 +0000 (15:56 +0100)
Remove "break" statement after a "return" statement as
it does not get executed.

Found by checkpatch.pl - break is not useful after a goto
or return

Signed-off-by: Supriya Karanth <iskaranth@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

index dca5fa7f32ae003690cb1f1dbbca8b2995b88be7..5f9ba77fa1264fb3940f2d90200900396e2d8818 100644 (file)
@@ -2115,7 +2115,6 @@ ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
                break;
        default:
                return -1;
-               break;
        }
 
        //dev_kfree_skb_any(skb);