Skip to content
Commit d599bfb3 authored by Richard Genoud's avatar Richard Genoud Committed by Linus Walleij
Browse files

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: default avatarRichard Genoud <richard.genoud@gmail.com>
parent ac5aa7f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment