[PATCH 2/3] pinctrl: rockchip: Improve a size determination in rockchip_pinctrl_probe()

Linus Walleij linus.walleij at linaro.org
Tue Jan 2 00:47:20 PST 2018


On Sat, Dec 23, 2017 at 10:40 PM, SF Markus Elfring
<elfring at users.sourceforge.net> wrote:

> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Sat, 23 Dec 2017 22:07:30 +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