summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-imx51.c
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-08-10 16:53:49 +0200
committerLinus Walleij <linus.walleij@linaro.org>2012-08-17 11:09:58 +0200
commitd599bfb324ad74e63b616809c1c13c76d1493cf9 (patch)
tree0f54b854d25fe1039252ee3c73fc0e403af6e339 /drivers/pinctrl/pinctrl-imx51.c
parentac5aa7f9e0891a115ab307b4bdde9c55b9232970 (diff)
trivial: pinctrl core: remove extraneous code lines
In function pinctrl_get_locked, pointer p is returned on error, and also return on no_error. So, we just return it with no error test. It's pretty the same in function pinctrl_lookup_state_locked: state is returned in every case, so we drop the error test and just return state. Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx51.c')
0 files changed, 0 insertions, 0 deletions