projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a474df5
)
staging: wilc1000: directly fetch 'priv' handler from 'vif' instance
author
Ajay Singh
<ajay.kathat@microchip.com>
Tue, 11 Feb 2020 09:57:09 +0000
(09:57 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 19:18:29 +0000
(11:18 -0800)
The 'priv' handler is already present in 'vif' struct so directly fetch
its value from vif handler in wilc_handle_roc_expired().
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link:
https://lore.kernel.org/r/20200211152802.6096-2-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/hif.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/hif.c
b/drivers/staging/wilc1000/hif.c
index 658790bd465bc86d0b36f8de53ea43a18d1f13df..c8c41c2df4ec798ad1b40305fd70c00a7db04aee 100644
(file)
--- a/
drivers/staging/wilc1000/hif.c
+++ b/
drivers/staging/wilc1000/hif.c
@@
-861,9
+861,8
@@
static int wilc_handle_roc_expired(struct wilc_vif *vif, u64 cookie)
struct wid wid;
int result;
struct host_if_drv *hif_drv = vif->hif_drv;
- struct wilc_priv *priv = wdev_priv(vif->ndev->ieee80211_ptr);
- if (
priv->
p2p_listen_state) {
+ if (
vif->priv.
p2p_listen_state) {
remain_on_chan_flag = false;
wid.id = WID_REMAIN_ON_CHAN;
wid.type = WID_STR;