Skip to content

netdev: ARRAY_SIZE() cleanups

Alejandro Martinez Ruiz netdev 1 version In review

Get series with b4
b4 am 20071018094706.GA23058@inspiron

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netdev: use ARRAY_SIZE() instead of sizeof(array) / ETH_GSTRING_LENdrivers/net/cassini.c drivers/net/e100.c drivers/net/e1000/e1000_ethtool.c +6 more+15 -181 reply
2/3netdev: ARRAY_SIZE() cleanupsdrivers/net/e1000e/ethtool.c drivers/net/e1000e/phy.c drivers/net/ixgbe/ixgbe_ethtool.c +7 more+19 -380 replies
3/3sk98lin: kill bogus check and convert to use ARRAY_SIZE()drivers/net/sk98lin/skgemib.c drivers/net/sk98lin/skgepnmi.c drivers/net/sk98lin/skgesirq.c+2 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] netdev: ARRAY_SIZE() cleanups

Hi,

these patches convert more cases of array size calculations to use the ARRAY_SIZE() macro.

First patch converts those of the form 'sizeof(arr) / ETH_GSTRING_LEN', second one some other mostly obvious cases, and the third applies to the almost dead sk98lin driver (which also removes a useless check AFAICS).

Alex