staging: rtl8712: code style fix

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>
This commit is contained in:
Tejaswini Poluri 2017-03-30 20:41:54 +05:30 committed by Greg Kroah-Hartman
parent 919a9bb607
commit b76cc94a10

View file

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