commit | 704509b8d44886cebfbaff1a9813c35dfa986954 | [log] [tgz] |
---|---|---|
author | Sven Eckelmann <sven@narfation.org> | Sat May 14 23:14:54 2011 +0200 |
committer | Sven Eckelmann <sven@narfation.org> | Mon May 30 07:39:33 2011 +0200 |
tree | 7b353f1d4a33b31d55d2a85f8d70882ade1868ce | |
parent | 958ca5985604a6f13387d32de489365df816558b [diff] |
batman-adv: Calculate sizeof using variable insead of types 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>