linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta
  2011-09-28 22:54 [PATCH] iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta Gregory.Dietsche
@ 2011-09-28 22:18 ` Guy, Wey-Yi
  0 siblings, 0 replies; 2+ messages in thread
From: Guy, Wey-Yi @ 2011-09-28 22:18 UTC (permalink / raw)
  To: Gregory.Dietsche@cuw.edu
  Cc: ilw@linux.intel.com, linville@tuxdriver.com,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, 2011-09-28 at 15:54 -0700, Gregory.Dietsche@cuw.edu wrote:
> From: Greg Dietsche <Gregory.Dietsche@cuw.edu>
> 
> both sta and lq_sta are guaranteed to be not null in the
> calling function so we don't need to check them here.
> 
> Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
> ---
>  drivers/net/wireless/iwlwifi/iwl-agn-rs.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
you are correct

Wey


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta
@ 2011-09-28 22:54 Gregory.Dietsche
  2011-09-28 22:18 ` Guy, Wey-Yi
  0 siblings, 1 reply; 2+ messages in thread
From: Gregory.Dietsche @ 2011-09-28 22:54 UTC (permalink / raw)
  To: wey-yi.w.guy
  Cc: ilw, linville, linux-wireless, netdev, linux-kernel,
	Greg Dietsche

From: Greg Dietsche <Gregory.Dietsche@cuw.edu>

both sta and lq_sta are guaranteed to be not null in the
calling function so we don't need to check them here.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 drivers/net/wireless/iwlwifi/iwl-agn-rs.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 3789ff4..e5ea33b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -2269,9 +2269,6 @@ static void rs_rate_scale_perform(struct iwl_priv *priv,
 	    info->flags & IEEE80211_TX_CTL_NO_ACK)
 		return;
 
-	if (!sta || !lq_sta)
-		return;
-
 	lq_sta->supp_rates = sta->supp_rates[lq_sta->band];
 
 	tid = rs_tl_add_packet(lq_sta, hdr);
-- 
1.7.6.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-28 23:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 22:54 [PATCH] iwlagn: iwl-agn-rs: remove unnecessary null check for sta and lq_sta Gregory.Dietsche
2011-09-28 22:18 ` Guy, Wey-Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).