batman-adv: Calculate sizeof using variable insead of types
authorSven Eckelmann <sven@narfation.org>
Sat, 14 May 2011 21:14:54 +0000 (23:14 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:33 +0000 (07:39 +0200)
Documentation/CodingStyle recommends to use the form

p = kmalloc(sizeof(*p), ...);

to calculate the size of a struct and not the version where the struct
name is spelled out to prevent bugs when the type of p changes. This
also seems appropriate for manipulation of buffers when they are
directly associated with p.

Signed-off-by: Sven Eckelmann <sven@narfation.org>

No differences found