From: Viresh Kumar Date: Tue, 6 Aug 2013 17:23:06 +0000 (+0530) Subject: cpufreq: Use sizeof(*ptr) convetion for computing sizes X-Git-Tag: v3.12-rc1~178^2~4^2~1^2~15^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b73cd870e2b049ef566aec2791dbf5fd26a7ec;p=pandora-kernel.git cpufreq: Use sizeof(*ptr) convetion for computing sizes Chapter 14 of Documentation/CodingStyle says: The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...); The alternative form where struct name is spelled out hurts readability and introduces an opportunity for a bug when the pointer variable type is changed but the corresponding sizeof that is passed to a memory allocator is not. This wasn't followed consistently in drivers/cpufreq, let's make it more consistent by always following this rule. Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed