OSDN Git Service

pinctrl: ti-iodelay: remove redundant pin < 0 check on unsigned int
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Jan 2017 13:20:39 +0000 (13:20 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Jan 2017 09:23:37 +0000 (10:23 +0100)
commit731d43cd6bacd39c39b5c957fa2bb0031bda0dce
tree168e2b85062ec22ceb4f4638c70a58d51b6b9cc4
parentd068b0988a48418a1b6679f5b7d650400846d17f
pinctrl: ti-iodelay: remove redundant pin < 0 check on unsigned int

pin is an unsigned int and therefore can never be < 0 so
this check is redundant. Remove the check and the associated
dev_err error message.

Fixes CoverityScan CID#1396438 ("Unsigned compared against 0")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/ti/pinctrl-ti-iodelay.c