]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: rzn1: Fix of_get_child_count() error check
authorPhil Edworthy <phil.edworthy@renesas.com>
Fri, 23 Nov 2018 10:54:28 +0000 (10:54 +0000)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Dec 2018 09:33:49 +0000 (10:33 +0100)
commit04557c707a067d5971ae612a4f3fc9e411398572
treece71679612067536ad4e92ba43a7af6190b6d22c
parent130c2135f1d583d62ee421d7806324c8c30addea
pinctrl: rzn1: Fix of_get_child_count() error check

If we assign the result of of_get_child_count() to an unsigned int,
the code will not detect any errors. Therefore assign it to an int
instead.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/pinctrl-rzn1.c