瀏覽代碼

ray_cs: remove bogus NULL check at head of ray_get_wireless_stats

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Martin Ettl <ettl.martin@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
John W. Linville 16 年之前
父節點
當前提交
11866efa9b
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      drivers/net/wireless/ray_cs.c

+ 0 - 3
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 pcmcia_device *link = local->finder;
 	struct status __iomem *p = local->sram + STATUS_BASE;
 	struct status __iomem *p = local->sram + STATUS_BASE;
 
 
-	if (local == (ray_dev_t *) NULL)
-		return (iw_stats *) NULL;
-
 	local->wstats.status = local->card_status;
 	local->wstats.status = local->card_status;
 #ifdef WIRELESS_SPY
 #ifdef WIRELESS_SPY
 	if ((local->spy_data.spy_number > 0)
 	if ((local->spy_data.spy_number > 0)