diff options
| author | 2008-03-04 15:19:19 -0800 | |
|---|---|---|
| committer | 2008-03-26 00:19:41 -0400 | |
| commit | 7a6d84c1b26fd8a1deb28a4bbed672959f7f26ae (patch) | |
| tree | dbe209b8dee48a7c1aaff213300ed33078add94d /include/linux/timer.h | |
| parent | Add support the Korina (IDT RC32434) Ethernet MAC (diff) | |
drivers/net/mv643xx_eth.c: Use FIELD_SIZEOF
Robert P.J. Day proposed to use the macro FIELD_SIZEOF in replace of code
that matches its definition.
The modification was made using the following semantic patch
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@haskernel@
@@
#include <linux/kernel.h>
@depends on haskernel@
type t;
identifier f;
@@
- (sizeof(((t*)0)->f))
+ FIELD_SIZEOF(t, f)
@depends on haskernel@
type t;
identifier f;
@@
- sizeof(((t*)0)->f)
+ FIELD_SIZEOF(t, f)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/timer.h')
0 files changed, 0 insertions, 0 deletions
