OSDN Git Service

gpio: aggregator: Drop pre-initialization in get_arg()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 1 Jul 2020 11:42:11 +0000 (13:42 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jul 2020 12:30:27 +0000 (14:30 +0200)
commit2073ea3ab181d42b4fd179ec3f74d53acefb563a
tree82e6b6ecc0c45ad24ace54f23ecb873ecf87c036
parent8cbdc5045df071b146b76a718dd8669e89714057
gpio: aggregator: Drop pre-initialization in get_arg()

In get_arg(), the variable start is pre-initialized, but overwritten
again in the first statement.  Rework the assignment to not rely on
pre-initialization, to make the code easier to read.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200701114212.8520-2-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aggregator.c