Skip to content

Commit

Permalink
ray_cs: remove bogus NULL check at head of ray_get_wireless_stats
Browse files Browse the repository at this point in the history
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Martin Ettl <ettl.martin@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Jul 29, 2009
1 parent 8d8b261 commit 11866ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ray_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11866ef

Please sign in to comment.