From: Yeliz Taneroglu Date: Fri, 3 Oct 2014 13:13:06 +0000 (+0300) Subject: staging: vt6655: Fixed else after return or break warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ac23fed85801685017fc7bf4567c6dfa024719b7;p=openwrt%2Fstaging%2Fblogic.git staging: vt6655: Fixed else after return or break warning The following patch fixes the checkpatch.pl warning: drivers/staging/vt6655/hostap.c warning: else is not generally useful after a break or return Signed-off-by: Yeliz Taneroglu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index ae0dade229d8..2db08df0656d 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c @@ -182,8 +182,7 @@ int vt6655_hostap_set_hostapd(struct vnt_private *pDevice, if (val) return hostap_enable_hostapd(pDevice, rtnl_locked); - else - return hostap_disable_hostapd(pDevice, rtnl_locked); + return hostap_disable_hostapd(pDevice, rtnl_locked); } /*