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.

Change-Id: If021fc9f5b6ae99459bb629e0aa42480f85f02f6
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Git-commit: d599bfb324ad74e63b616809c1c13c76d1493cf9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Hanumant Singh <hanumant@codeaurora.org>
1 file changed