Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 580136dc authored by Russell King - ARM Linux's avatar Russell King - ARM Linux Committed by Stephen Boyd
Browse files

pinctrl: shut up a couple of pinctrl warnings



So, I notice that we get a couple of warnings from the pinctrl code:

drivers/pinctrl/pinconf.c: In function 'pinconf_dbg_config_print':
drivers/pinctrl/pinconf.c:433:36: warning: 'configs' may be used uninitialized in this function
drivers/pinctrl/pinconf.c: In function 'pinconf_dbg_config_write':
drivers/pinctrl/pinconf.c:511:36: warning: 'configs' may be used uninitialized in this function

While the compiler might not be able to work out that "configs" is
safe, the code doesn't lend itself very well to identifying that
fact when reading it either.  This can be trivially solved by a slight
restructuring of the code - which also reduces the LOC.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Git-commit: 8a9dcc3ffed66bf6f66c45b11f34de02b0fda4a0
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git


Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent f83ed694
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment