[PATCH 2/2] pinctrl/nomadik/abx500: Improve a size determination in abx500_gpio_probe()

Linus Walleij linus.walleij at linaro.org
Thu Dec 21 01:20:54 PST 2017


On Wed, Dec 20, 2017 at 10:52 AM, SF Markus Elfring
<elfring at users.sourceforge.net> wrote:

> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Wed, 20 Dec 2017 10:22:53 +0100
>
> Replace the specification of a data structure by a pointer dereference
> 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 at users.sourceforge.net>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list