staging: rtl8723bs: core: fix line over 80 characters warning
authorAnirudh Rayabharam <anirudh.rayabharam@gmail.com>
Tue, 26 Mar 2019 18:25:07 +0000 (23:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Mar 2019 14:37:30 +0000 (23:37 +0900)
Shorten the expression by re-using the part that was already computed to
fix the line over 80 characters warning reported by checkpatch.pl.

Signed-off-by: Anirudh Rayabharam <anirudh.rayabharam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ap.c

index 18fabf5..bc02306 100644 (file)
@@ -2336,8 +2336,8 @@ void rtw_ap_restore_network(struct adapter *padapter)
                        Update_RA_Entry(padapter, psta);
                        /* pairwise key */
                        /* per sta pairwise key and settings */
-                       if ((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) ||
-                               (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) {
+                       if ((psecuritypriv->dot11PrivacyAlgrthm == _TKIP_) ||
+                               (psecuritypriv->dot11PrivacyAlgrthm == _AES_)) {
                                rtw_setstakey_cmd(padapter, psta, true, false);
                        }
                }