]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: Remove unnecessary else if
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Wed, 22 Oct 2014 06:05:21 +0000 (11:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Oct 2014 05:43:46 +0000 (13:43 +0800)
Removed the unnecessary else if condition as it has only
one comment inside it and do not have an FIXME or TODO comment near to
it too.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index c567df6c63212fe1bd3d28d87c7479202a13dac8..2f01714bc9e29c0a6b6deabacd20234416a9f860 100644 (file)
@@ -850,7 +850,6 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, u8 key_index,
                                            dot11PrivacyAlgrthm;
                                }
                        }
-               } else if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) {        /* adhoc mode */
                }
        }