]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] libertas: remove adapter->nullpktinterval
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 17:09:15 +0000 (13:09 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:02 +0000 (16:50 -0700)
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>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/dev.h

index 72e76e4ec7a94740066eb26f26460f1d4fb679ee..f5d4971f13a0ab32808da68ef34f1adc38be3cc7 100644 (file)
@@ -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;
index 76234000e5bcf56da8eb4ee7088a3734020a0779..6e78e315a8b3114c4187e1d538debe35ff12f35b 100644 (file)
@@ -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;