summaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/ptrace.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-08-06 19:23:06 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-07 23:34:10 +0200
commitd5b73cd870e2b049ef566aec2791dbf5fd26a7ec (patch)
tree191f399b9ce03fd7a1b6820126823a0d3776e030 /arch/c6x/kernel/ptrace.c
parentcpufreq: Give consistent names to cpufreq_policy objects (diff)
downloadlinux-d5b73cd870e2b049ef566aec2791dbf5fd26a7ec.tar.xz
linux-d5b73cd870e2b049ef566aec2791dbf5fd26a7ec.zip
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 <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/c6x/kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions