From: Ksenija Stanojevic Date: Fri, 20 Feb 2015 21:54:27 +0000 (+0100) Subject: Staging: rtl8192u: Remove else after return X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bf1c66e8158d36daf1598b9350a10b7a235252fa;p=openwrt%2Fstaging%2Fblogic.git Staging: rtl8192u: Remove else after return This patch simplifies the code by removing else and fixes the following checkpatch.pl warning: "else is not useful after break or return". Signed-off-by: Ksenija Stanojevic Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c index dbd3321c6d4a..84a8a9a78a46 100644 --- a/drivers/staging/rtl8192u/r819xU_phy.c +++ b/drivers/staging/rtl8192u/r819xU_phy.c @@ -1365,11 +1365,10 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, if ((*stage) == 2) { (*delay) = CurrentCmd->msDelay; return true; - } else { - (*stage)++; - (*step) = 0; - continue; } + (*stage)++; + (*step) = 0; + continue; } switch (CurrentCmd->CmdID) {