From: krzk@kernel.org (Krzysztof Kozlowski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: SAMSUNG: Improve a size determination in 13 functions
Date: Wed, 4 Oct 2017 21:11:02 +0200 [thread overview]
Message-ID: <20171004191102.mnswu25bjxynuh4o@kozik-lap> (raw)
In-Reply-To: <7f196313-ad49-2cd8-e45f-be487e089547@users.sourceforge.net>
On Wed, Oct 04, 2017 at 01:12:55PM +0200, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Wed, 4 Oct 2017 09:52:33 +0200
>
> Replace the specification of data structures by pointer dereferences
> as the parameter for the operator "sizeof" to make the corresponding size
> determination a bit safer according to the Linux coding style convention.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---
> arch/arm/plat-samsung/adc.c | 4 ++--
> arch/arm/plat-samsung/devs.c | 33 +++++++++++----------------------
> 2 files changed, 13 insertions(+), 24 deletions(-)
>
Thanks, applied.
Best regards,
Krzysztof
next prev parent reply other threads:[~2017-10-04 19:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-04 11:10 [PATCH 0/2] ARM-SAMSUNG: Adjustments for 14 function implementations SF Markus Elfring
2017-10-04 11:11 ` [PATCH 1/2] ARM: SAMSUNG: Delete an error message for a failed memory allocation in three functions SF Markus Elfring
2017-10-04 19:04 ` Krzysztof Kozlowski
2017-10-04 11:12 ` [PATCH 2/2] ARM: SAMSUNG: Improve a size determination in 13 functions SF Markus Elfring
2017-10-04 19:11 ` Krzysztof Kozlowski [this message]
2017-10-10 9:28 ` SF Markus Elfring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171004191102.mnswu25bjxynuh4o@kozik-lap \
--to=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox