pinctrl: rockchip: Simplify pin_to_bank equation
authorAxel Lin <axel.lin@ingics.com>
Fri, 23 Aug 2013 07:49:00 +0000 (15:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2013 11:34:18 +0000 (13:34 +0200)
If (b->pin_base + b->nr_pins - 1) < pin is true, pin >= b->pin_base is always
true because b->nr_pins is never less than 0.
Thus this patch simplify the equation.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found