Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 731d43cd authored by Colin Ian King's avatar Colin Ian King Committed by Linus Walleij
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d068b098
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -665,12 +665,6 @@ static void ti_iodelay_pin_dbg_show(struct pinctrl_dev *pctldev,
	r = iod->reg_data;

	offset = ti_iodelay_pin_to_offset(iod, pin);
	if (pin < 0) {
		dev_err(iod->dev, "invalid pin offset for pin%i\n", pin);

		return;
	}

	pd = &iod->pa[pin];
	cfg = pd->drv_data;