Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1396039

Re: [PATCH] clk: bcm/kona: Do not use sizeof on pointer type

From Stephen Boyd <sboyd@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH] clk: bcm/kona: Do not use sizeof on pointer type
Date 2016-05-06 20:10 +0200
Message-ID <rvSmo-1A4-77@gated-at.bofh.it> (permalink)
References <rsUE4-41Z-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/28, Vaishali Thakkar wrote:
> When sizeof is applied to a pointer typed expression, it gives
> the size of the pointer. So, here do not use sizeof on pointer
> type. Also, silent checkpatch.pl by using kmalloc_array over
> kmalloc.
> 
> Note that this has no effect on runtime because 'parent_names'
> is a pointer to a pointer.
> 
> Problem found using Coccinelle.
> 
> Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] clk: bcm/kona: Do not use sizeof on pointer type Vaishali Thakkar <vaishali.thakkar@oracle.com> - 2016-04-28 16:00 +0200
  Re: [PATCH] clk: bcm/kona: Do not use sizeof on pointer type Stephen Boyd <sboyd@codeaurora.org> - 2016-05-06 20:10 +0200

csiph-web