Commit 3cbd2279 authored by Alexander Mikhalevich's avatar Alexander Mikhalevich Committed by Greg Kroah-Hartman

staging: rtl8712: Fix checkpatch.pl warning

WARNING: Avoid multiple line dereference - prefer 'param->u.crypt.key'
Signed-off-by: default avatarAlexander Mikhalevich <alex.mikhalevich@gmail.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b59ea84
...@@ -100,10 +100,10 @@ static inline void handle_pairwise_key(struct sta_info *psta, ...@@ -100,10 +100,10 @@ static inline void handle_pairwise_key(struct sta_info *psta,
memcpy(psta->x_UncstKey.skey, param->u.crypt.key, memcpy(psta->x_UncstKey.skey, param->u.crypt.key,
(param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len));
if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */
memcpy(psta->tkiptxmickey. skey, &(param->u.crypt. memcpy(psta->tkiptxmickey. skey,
key[16]), 8); &(param->u.crypt.key[16]), 8);
memcpy(psta->tkiprxmickey. skey, &(param->u.crypt. memcpy(psta->tkiprxmickey. skey,
key[24]), 8); &(param->u.crypt.key[24]), 8);
padapter->securitypriv. busetkipkey = false; padapter->securitypriv. busetkipkey = false;
mod_timer(&padapter->securitypriv.tkip_timer, mod_timer(&padapter->securitypriv.tkip_timer,
jiffies + msecs_to_jiffies(50)); jiffies + msecs_to_jiffies(50));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment