linux/drivers/net/sk98lin
Alejandro Martinez Ruiz ef878b8899 sk98lin: kill bogus check and convert to use ARRAY_SIZE()
This converts uses of ARRAY_SIZE(), and while at it also kills
unreachable code as far as I can say. I can't tell what was the author
trying to do with the following check. First we have:

PNMI_STATIC const SK_PNMI_STATADDR
		StatAddr[SK_PNMI_MAX_IDX][SK_PNMI_MAC_TYPES];

and then a check goes like this:

if (SK_PNMI_MAX_IDX !=
   (sizeof(StatAddr) / (sizeof(SK_PNMI_STATADDR) * SK_PNMI_MAC_TYPES)))

with the second line being just ARRAY_SIZE(StatAddr), which will always
return SK_PNMI_MAX_IDX, rendering the check useless.

Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2008-01-28 15:03:38 -08:00
..
h sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
Makefile sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skaddr.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skdim.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skethtool.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skge.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
skgehwt.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skgeinit.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skgemib.c sk98lin: kill bogus check and convert to use ARRAY_SIZE() 2008-01-28 15:03:38 -08:00
skgepnmi.c sk98lin: kill bogus check and convert to use ARRAY_SIZE() 2008-01-28 15:03:38 -08:00
skgesirq.c sk98lin: kill bogus check and convert to use ARRAY_SIZE() 2008-01-28 15:03:38 -08:00
ski2c.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
sklm80.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skqueue.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skrlmt.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
sktimer.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skvpd.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00
skxmac2.c sk98lin: resurrect driver 2007-09-15 19:35:14 -04:00