Skip to content

Commit

Permalink
[PATCH] libertas: remove adapter->nullpktinterval
Browse files Browse the repository at this point in the history
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: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Holger Schurig authored and David S. Miller committed Oct 10, 2007
1 parent a783f1e commit 97605c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv,

psm->locallisteninterval =
cpu_to_le16(adapter->locallisteninterval);
psm->nullpktinterval =
cpu_to_le16(adapter->nullpktinterval);
psm->nullpktinterval = 0;
psm->multipledtim =
cpu_to_le16(priv->adapter->multipledtim);
break;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/libertas/dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ struct _wlan_adapter {

struct PS_CMD_ConfirmSleep libertas_ps_confirm_sleep;
u16 locallisteninterval;
u16 nullpktinterval;

struct assoc_request * pending_assoc_req;
struct assoc_request * in_progress_assoc_req;
Expand Down

0 comments on commit 97605c3

Please sign in to comment.