summaryrefslogtreecommitdiffstats
path: root/include/linux/amba/pl08x.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2011-08-05 15:32:29 +0530
committerVinod Koul <vinod.koul@intel.com>2011-08-25 19:33:37 +0530
commitb201c111c87a4cf36d009abe57c62bd14d17d762 (patch)
tree5050103fd6bb6eff77c6c0c7ce7ee51d25a78bcb /include/linux/amba/pl08x.h
parent0c38d70139138713e66c6f98e19a0320014476ff (diff)
downloadblackbird-op-linux-b201c111c87a4cf36d009abe57c62bd14d17d762.tar.gz
blackbird-op-linux-b201c111c87a4cf36d009abe57c62bd14d17d762.zip
dmaengine/amba-pl08x: pass (*ptr) to sizeof() instead of (struct xyz)
As mentioned in Documentation/CodingStyle, 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 patch replaces (struct xyz) with *ptr at several occurrences in driver. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/amba/pl08x.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud