]> git.baikalelectronics.ru Git - kernel.git/commit
tulip: cleanup by using ARRAY_SIZE()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jan 2014 08:26:37 +0000 (11:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2014 21:28:29 +0000 (13:28 -0800)
commitf9464c41581426e2709c771dac91a725e8929eba
treee97175b32d9cbb93f3b4c518b4309bcad0d2c960
parent723ff60b141d27948e45f07fb68947a3cb31df1a
tulip: cleanup by using ARRAY_SIZE()

In this situation then ARRAY_SIZE() and sizeof() are the same, but we're
really dealing with array indexes and not byte offsets so ARRAY_SIZE()
is cleaner.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/media.c