staging: rtl8192e: remove break after return
authorSupriya Karanth <iskaranth@gmail.com>
Fri, 13 Mar 2015 07:58:41 +0000 (16:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:00:20 +0000 (16:00 +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/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib_softmac.c

index cd3c662eba2b16b6a7f9e262e7a573cc30507dc5..a369a1f28ee524fe0160f95e8b56ee2fff322935 100644 (file)
@@ -920,7 +920,6 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
                        RT_TRACE(COMP_ERR, "Unknown RFChipID: %d\n",
                                 priv->rf_chip);
                        return false;
-                       break;
                }
 
 
index bee4b4398f2ff6f37a748bb7bf201b1c6b50790d..392bdf513ae2d1675e991920d5beef75c2079b6a 100644 (file)
@@ -2452,7 +2452,6 @@ inline int rtllib_rx_frame_softmac(struct rtllib_device *ieee,
                break;
        default:
                return -1;
-               break;
        }
        return 0;
 }