staging: rtl8712: code style fix
authorTejaswini Poluri <tejaswinipoluri3@gmail.com>
Thu, 30 Mar 2017 15:11:54 +0000 (20:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:05:59 +0000 (17:05 +0200)
Fixed the warnings from checkpatch.pl on file rtl8712/mlme_linux.c
Avoided multiple line dereferences in the code

Signed-off-by: Tejaswini Poluri <tejaswinipoluri3@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/mlme_linux.c

index 999c16d9c6c15f1c40638ffb968891fc66912d52..20372659d15d62c525917c1eab27f19202494c4c 100644 (file)
@@ -110,12 +110,12 @@ void r8712_os_indicate_disconnect(struct _adapter *adapter)
                 * disconnect with AP for 60 seconds.
                 */
 
-               memcpy(&backupPMKIDList[0], &adapter->securitypriv.
-                       PMKIDList[0], sizeof(struct RT_PMKID_LIST) *
-                       NUM_PMKID_CACHE);
+               memcpy(&backupPMKIDList[0],
+                       &adapter->securitypriv.PMKIDList[0],
+                       sizeof(struct RT_PMKID_LIST) * NUM_PMKID_CACHE);
                backupPMKIDIndex = adapter->securitypriv.PMKIDIndex;
-               backupTKIPCountermeasure = adapter->securitypriv.
-                                          btkip_countermeasure;
+               backupTKIPCountermeasure =
+                       adapter->securitypriv.btkip_countermeasure;
                memset((unsigned char *)&adapter->securitypriv, 0,
                       sizeof(struct security_priv));
                setup_timer(&adapter->securitypriv.tkip_timer,