]> git.karo-electronics.de Git - linux-beck.git/commit
brcmfmac: simplify if-else condition in brcmf_cfg80211_escan()
authorArend van Spriel <arend@broadcom.com>
Tue, 6 Nov 2012 00:22:10 +0000 (16:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Nov 2012 19:55:42 +0000 (14:55 -0500)
commit2cb941c0474e3037e9ad4ee219d4c848ad519ac0
treec292a9b5ef62088c1f29493e3ff1483bf13e6b7a
parent3d3726d25635a63764c4f324176873124f8a02b6
brcmfmac: simplify if-else condition in brcmf_cfg80211_escan()

Code flow was:
err = foo();
if (!err)
return err;
else
goto exit;
return 0;

Changed it to just to exit label if err is non-zero.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c