All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helmut Schaa <helmut.schaa@googlemail.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 2/2] iwl3945: Remove unused variables
Date: Mon, 19 Jan 2009 09:55:32 +0100	[thread overview]
Message-ID: <200901190955.32818.helmut.schaa@gmail.com> (raw)

=46ix the following warnings in iwl-3945-rs.c by removing unused variab=
les.

drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function =E2=80=98iwl394=
5_rate_scale_flush_windows=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:186: warning: unused variabl=
e =E2=80=98priv=E2=80=99
drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function =E2=80=98iwl394=
5_bg_rate_scale_flush=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:219: warning: unused variabl=
e =E2=80=98priv=E2=80=99
drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function =E2=80=98iwl394=
5_collect_tx_data=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:293: warning: unused variabl=
e =E2=80=98priv=E2=80=99
drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function =E2=80=98rs_fre=
e_sta=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:441: warning: unused variabl=
e =E2=80=98priv=E2=80=99
drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function =E2=80=98iwl394=
5_get_adjacent_rate=E2=80=99:
drivers/net/wireless/iwlwifi/iwl-3945-rs.c:559: warning: unused variabl=
e =E2=80=98priv=E2=80=99

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
---
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c b/drivers/net/w=
ireless/iwlwifi/iwl-3945-rs.c
index ba64034..2af45f4 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
@@ -183,7 +183,6 @@ static int iwl3945_rate_scale_flush_windows(struct =
iwl3945_rs_sta *rs_sta)
 	int unflushed =3D 0;
 	int i;
 	unsigned long flags;
-	struct iwl_priv *priv =3D rs_sta->priv;
=20
 	/*
 	 * For each rate, if we have collected data on that rate
@@ -216,7 +215,6 @@ static int iwl3945_rate_scale_flush_windows(struct =
iwl3945_rs_sta *rs_sta)
 static void iwl3945_bg_rate_scale_flush(unsigned long data)
 {
 	struct iwl3945_rs_sta *rs_sta =3D (void *)data;
-	struct iwl_priv *priv =3D rs_sta->priv;
 	int unflushed =3D 0;
 	unsigned long flags;
 	u32 packet_count, duration, pps;
@@ -290,7 +288,6 @@ static void iwl3945_collect_tx_data(struct iwl3945_=
rs_sta *rs_sta,
 {
 	unsigned long flags;
 	s32 fail_count;
-	struct iwl_priv *priv =3D rs_sta->priv;
=20
 	if (!retries) {
 		IWL_DEBUG_RATE("leave: retries =3D=3D 0 -- should be at least 1\n");
@@ -438,7 +435,6 @@ static void rs_free_sta(void *iwl_priv, struct ieee=
80211_sta *sta,
 {
 	struct iwl3945_sta_priv *psta =3D (void *) sta->drv_priv;
 	struct iwl3945_rs_sta *rs_sta =3D priv_sta;
-	struct iwl_priv *priv =3D rs_sta->priv;
=20
 	psta->rs_sta =3D NULL;
=20
@@ -556,7 +552,6 @@ static u16 iwl3945_get_adjacent_rate(struct iwl3945=
_rs_sta *rs_sta,
 {
 	u8 high =3D IWL_RATE_INVALID;
 	u8 low =3D IWL_RATE_INVALID;
-	struct iwl_priv *priv =3D rs_sta->priv;
=20
 	/* 802.11A walks to the next literal adjacent rate in
 	 * the rate table */
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2009-01-19  9:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-19  8:55 Helmut Schaa [this message]
2009-01-19 13:06 ` [PATCH 2/2] iwl3945: Remove unused variables samuel
2009-01-21 19:23 ` John W. Linville
2009-01-22 10:44   ` Helmut Schaa
2009-01-22 11:28     ` Tomas Winkler
2009-01-22 19:08       ` Helmut Schaa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200901190955.32818.helmut.schaa@gmail.com \
    --to=helmut.schaa@googlemail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.