Search Linux Wireless

Re: [PATCH 2/2] iwl3945: Remove unused variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Jan 2009 09:55:32 +0100, Helmut Schaa
<helmut.schaa@xxxxxxxxxxxxxx> wrote:
> Fix the following warnings in iwl-3945-rs.c by removing unused variables.
> 
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function
> ‘iwl3945_rate_scale_flush_windows’:
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c:186: warning: unused variable
> ‘priv’
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function
> ‘iwl3945_bg_rate_scale_flush’:
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c:219: warning: unused variable
> ‘priv’
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function
> ‘iwl3945_collect_tx_data’:
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c:293: warning: unused variable
> ‘priv’
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function
‘rs_free_sta’:
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c:441: warning: unused variable
> ‘priv’
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c: In function
> ‘iwl3945_get_adjacent_rate’:
> drivers/net/wireless/iwlwifi/iwl-3945-rs.c:559: warning: unused variable
> ‘priv’
> 
> Signed-off-by: Helmut Schaa <helmut.schaa@xxxxxxxxxxxxxx>
Acked-by: Samuel Ortiz <samuel.ortiz@xxxxxxxxx>

Thanks Helmut.

> ---
> diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-rs.c
> b/drivers/net/wireless/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 = 0;
>  	int i;
>  	unsigned long flags;
> -	struct iwl_priv *priv = rs_sta->priv;
>  
>  	/*
>  	 * 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 = (void *)data;
> -	struct iwl_priv *priv = rs_sta->priv;
>  	int unflushed = 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 = rs_sta->priv;
>  
>  	if (!retries) {
>  		IWL_DEBUG_RATE("leave: retries == 0 -- should be at least 1\n");
> @@ -438,7 +435,6 @@ static void rs_free_sta(void *iwl_priv, struct
> ieee80211_sta *sta,
>  {
>  	struct iwl3945_sta_priv *psta = (void *) sta->drv_priv;
>  	struct iwl3945_rs_sta *rs_sta = priv_sta;
> -	struct iwl_priv *priv = rs_sta->priv;
>  
>  	psta->rs_sta = NULL;
>  
> @@ -556,7 +552,6 @@ static u16 iwl3945_get_adjacent_rate(struct
> iwl3945_rs_sta *rs_sta,
>  {
>  	u8 high = IWL_RATE_INVALID;
>  	u8 low = IWL_RATE_INVALID;
> -	struct iwl_priv *priv = rs_sta->priv;
>  
>  	/* 802.11A walks to the next literal adjacent rate in
>  	 * the rate table */
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless"
> in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux