]> err.no Git - linux-2.6/commit
[BNX2]: Possible sparse fixes, take two
authorPeter Hagervall <hager@cs.umu.se>
Wed, 10 Aug 2005 21:18:16 +0000 (14:18 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 29 Aug 2005 22:56:43 +0000 (15:56 -0700)
commit14ab9b867aa6c107b4886bdc5b23f277ab10792e
treedec16a22fe4e18c1de63256454f5a0810ce17379
parent07dc3f0718d2c88c3094a0aadeeb4744effc5439
[BNX2]: Possible sparse fixes, take two

This patch contains the following possible cleanups/fixes:

- use C99 struct initializers
- make a few arrays and structs static
- remove a few uses of literal 0 as NULL pointer
- use convenience function instead of cast+dereference in bnx2_ioctl()
- remove superfluous casts to u8 * in calls to readl/writel

Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c