diff mbox

ray_cs: remove bocus NULL check at head of ray_get_wireless_stats

Message ID 1248706969-10435-1-git-send-email-linville@tuxdriver.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

John W. Linville July 27, 2009, 3:02 p.m. UTC
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Martin Ettl <ettl.martin@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
Johannes points-out that the NULL check is mostly bogus given how
netdev_priv is computed and how get_wireless_stats gets called...

 drivers/net/wireless/ray_cs.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 698b11b..8fdea7f 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -1511,9 +1511,6 @@  static iw_stats *ray_get_wireless_stats(struct net_device *dev)
 	struct pcmcia_device *link = local->finder;
 	struct status __iomem *p = local->sram + STATUS_BASE;
 
-	if (local == (ray_dev_t *) NULL)
-		return (iw_stats *) NULL;
-
 	local->wstats.status = local->card_status;
 #ifdef WIRELESS_SPY
 	if ((local->spy_data.spy_number > 0)