Skip to content
Commit 51578b9b authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

pinctrl: rockchip: Simplify pin_to_bank equation



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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dff5a99c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment