trivial: pinctrl core: remove extraneous code lines
authorRichard Genoud <richard.genoud@gmail.com>
Fri, 10 Aug 2012 14:53:49 +0000 (16:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Aug 2012 09:09:58 +0000 (11:09 +0200)
commitd599bfb324ad74e63b616809c1c13c76d1493cf9
tree0f54b854d25fe1039252ee3c73fc0e403af6e339
parentac5aa7f9e0891a115ab307b4bdde9c55b9232970
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>
drivers/pinctrl/core.c