2009-08-18 14:55:16

by John W. Linville

[permalink] [raw]
Subject: [PATCH 1/2] rc80211_pid_algo.c: remove unused variable declaration

CC [M] net/mac80211/rc80211_pid_algo.o
net/mac80211/rc80211_pid_algo.c: In function ‘rate_control_pid_rate_init’:
net/mac80211/rc80211_pid_algo.c:304: warning: unused variable ‘si’

Signed-off-by: John W. Linville <[email protected]>
---
net/mac80211/rc80211_pid_algo.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
index f6e25d7..699d3ed 100644
--- a/net/mac80211/rc80211_pid_algo.c
+++ b/net/mac80211/rc80211_pid_algo.c
@@ -301,7 +301,6 @@ rate_control_pid_rate_init(void *priv, struct ieee80211_supported_band *sband,
struct rc_pid_sta_info *spinfo = priv_sta;
struct rc_pid_info *pinfo = priv;
struct rc_pid_rateinfo *rinfo = pinfo->rinfo;
- struct sta_info *si;
int i, j, tmp;
bool s;

--
1.6.2.5



2009-08-18 16:46:38

by Javier Cardona

[permalink] [raw]
Subject: Re: [PATCH 1/2] rc80211_pid_algo.c: remove unused variable declaration

Thanks, John.

On Tue, Aug 18, 2009 at 7:53 AM, John W. Linville<[email protected]> wrote:
> ?CC [M] ?net/mac80211/rc80211_pid_algo.o
> net/mac80211/rc80211_pid_algo.c: In function ?rate_control_pid_rate_init?:
> net/mac80211/rc80211_pid_algo.c:304: warning: unused variable ?si?
>
> Signed-off-by: John W. Linville <[email protected]>
Acked-by: Javier Cardona <[email protected]>


> ---
> ?net/mac80211/rc80211_pid_algo.c | ? ?1 -
> ?1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/net/mac80211/rc80211_pid_algo.c b/net/mac80211/rc80211_pid_algo.c
> index f6e25d7..699d3ed 100644
> --- a/net/mac80211/rc80211_pid_algo.c
> +++ b/net/mac80211/rc80211_pid_algo.c
> @@ -301,7 +301,6 @@ rate_control_pid_rate_init(void *priv, struct ieee80211_supported_band *sband,
> ? ? ? ?struct rc_pid_sta_info *spinfo = priv_sta;
> ? ? ? ?struct rc_pid_info *pinfo = priv;
> ? ? ? ?struct rc_pid_rateinfo *rinfo = pinfo->rinfo;
> - ? ? ? struct sta_info *si;
> ? ? ? ?int i, j, tmp;
> ? ? ? ?bool s;
>
> --
> 1.6.2.5
>
>



--
Javier Cardona
cozybit Inc.
http://www.cozybit.com