Commit 97605c3e authored by Holger Schurig's avatar Holger Schurig Committed by David S. Miller

[PATCH] libertas: remove adapter->nullpktinterval

No code ever initialized this variable, so it was 0 because of kzalloc().
But no other code changes it, making it rather useless.
Signed-off-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a783f1ee
...@@ -73,8 +73,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv, ...@@ -73,8 +73,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv,
psm->locallisteninterval = psm->locallisteninterval =
cpu_to_le16(adapter->locallisteninterval); cpu_to_le16(adapter->locallisteninterval);
psm->nullpktinterval = psm->nullpktinterval = 0;
cpu_to_le16(adapter->nullpktinterval);
psm->multipledtim = psm->multipledtim =
cpu_to_le16(priv->adapter->multipledtim); cpu_to_le16(priv->adapter->multipledtim);
break; break;
......
...@@ -313,7 +313,6 @@ struct _wlan_adapter { ...@@ -313,7 +313,6 @@ struct _wlan_adapter {
struct PS_CMD_ConfirmSleep libertas_ps_confirm_sleep; struct PS_CMD_ConfirmSleep libertas_ps_confirm_sleep;
u16 locallisteninterval; u16 locallisteninterval;
u16 nullpktinterval;
struct assoc_request * pending_assoc_req; struct assoc_request * pending_assoc_req;
struct assoc_request * in_progress_assoc_req; struct assoc_request * in_progress_assoc_req;
......
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