diff options
author | Julia Lawall <julia@diku.dk> | 2008-11-09 17:56:10 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-21 11:08:16 -0500 |
commit | 87c1687d1a7bf0d4975d613cb699ba95b329359e (patch) | |
tree | e643bba6f090292d7395ec5b9e9ac93a78ceab9f /drivers/watchdog/it87_wdt.c | |
parent | f9f88fed3433139b58962011c81597b44fd48458 (diff) |
drivers/net/wireless/ath9k/rc.c: use ARRAY_SIZE
ARRAY_SIZE is more concise to use when the size of an array is divided by
the size of its type or the size of its first element.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@i@
@@
#include <linux/kernel.h>
@depends on i using "paren.iso"@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/watchdog/it87_wdt.c')
0 files changed, 0 insertions, 0 deletions