Re: [PATCH] pinctrl: rockchip: Simplify for loop iteration

2013-08-22 Thread Heiko Stübner
Am Mittwoch, 21. August 2013, 04:28:50 schrieb Axel Lin: > Just return once a match found makes the code simpler and shorter. > > Signed-off-by: Axel Lin as I'm a bit late for an Ack it seems, I can only offer a thanks for making this nicer :-) Heiko > --- > drivers/pinctrl/pinctrl-rockchi

Re: [PATCH] pinctrl: rockchip: Simplify for loop iteration

2013-08-21 Thread Linus Walleij
On Wed, Aug 21, 2013 at 4:28 AM, Axel Lin wrote: > Just return once a match found makes the code simpler and shorter. > > Signed-off-by: Axel Lin Obviously correct, and elegant so patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH] pinctrl: rockchip: Simplify for loop iteration

2013-08-20 Thread Axel Lin
Just return once a match found makes the code simpler and shorter. Signed-off-by: Axel Lin --- drivers/pinctrl/pinctrl-rockchip.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c in