From: Sven Eckelmann Date: Sat, 14 May 2011 21:14:54 +0000 (+0200) Subject: batman-adv: Calculate sizeof using variable insead of types X-Git-Tag: v3.1-rc1~316^2~412^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=704509b8d44886cebfbaff1a9813c35dfa986954;p=pandora-kernel.git 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 --- Reading git-diff-tree failed