Commit 50a71087 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Linus Walleij
Browse files

pinctrl: ralink: rt2880: use 'PTR_ERR_OR_ZERO'



 Avoid some boilerplate code using 'PTR_ERR_OR_ZERO'
 in probe function.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201213161721.6514-8-sergio.paracuellos@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8a55d64c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -343,10 +343,8 @@ static int rt2880_pinmux_probe(struct platform_device *pdev)
		return err;
	}
	dev = pinctrl_register(p->desc, &pdev->dev, p);
	if (IS_ERR(dev))
		return PTR_ERR(dev);

	return 0;
	return PTR_ERR_OR_ZERO(dev);
}

static const struct of_device_id rt2880_pinmux_match[] = {