pinctrl: rockchip: Simplify for loop iteration
authorAxel Lin <axel.lin@ingics.com>
Wed, 21 Aug 2013 02:28:50 +0000 (10:28 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2013 06:56:32 +0000 (08:56 +0200)
commit1cb95395870d68f9ff679db42fa15ea03201fc08
tree7dadcd15a6bd9852cce84f7a384da5f0a9cb61fb
parent1ede12d491cb5bad4f31f0e82443a68eeeeb8ac3
pinctrl: rockchip: Simplify for loop iteration

Just return once a match found makes the code simpler and shorter.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c