ray_cs: remove bogus NULL check at head of ray_get_wireless_stats
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 14:56:41 +0000 (10:56 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Jul 2009 19:45:59 +0000 (15:45 -0400)
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Martin Ettl <ettl.martin@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ray_cs.c

index 64e574c3655ca6b7b07123bd286c5382340f8747..2be78201633f9111817f17623b71dddbc916ee7f 100644 (file)
@@ -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)