From: Dogukan Ergun Date: Sat, 13 Jun 2015 12:04:26 +0000 (+0300) Subject: staging: rtl8712: fix else after break or return warning X-Git-Tag: v4.2-rc1~88^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07e9e619db50ad6704e714f8160a59f1de3cf93c;p=platform%2Fkernel%2Flinux-exynos.git staging: rtl8712: fix else after break or return warning This patch fixes checkpatch.pl warning. WARNING: else is not generally useful after a break or return Signed-off-by: Dogukan Ergun Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index cb0b63877..3388f97 100644 --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c @@ -813,8 +813,7 @@ static int r871x_wx_set_pmkid(struct net_device *dev, case IW_PMKSA_ADD: if (!memcmp(strIssueBssid, strZeroMacAddress, ETH_ALEN)) return intReturn; - else - intReturn = true; + intReturn = true; blInserted = false; /* overwrite PMKID */ for (j = 0; j < NUM_PMKID_CACHE; j++) {