drivers/pinctrl: remove redundant ret variable
Subsystems (3)
PATCH 1/1 drivers/pinctrl: remove redundant ret variable
From: Minghao Chi <[email protected]>
Return value from pxa2xx_pinctrl_init() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/pinctrl/pxa/pinctrl-pxa27x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/pinctrl/pxa/pinctrl-pxa27x.c +2 -3
@@ -504,7 +504,7 @@ static const struct pxa_desc_pin pxa27x_pins[] = {static int pxa27x_pinctrl_probe (struct platform_device *pdev) { -int ret, i; +int i;void __iomem *base_af[8 ];void __iomem *base_dir[4 ];void __iomem *base_sleep[4 ];
@@ -532,9 +532,8 @@ static int pxa27x_pinctrl_probe(struct platform_device *pdev)for (i =0 ; i <ARRAY_SIZE (base_sleep); i++) base_sleep[i] = base_sleep[0 ] +sizeof (base_af[0 ]) * i; - ret =pxa2xx_pinctrl_init (pdev, pxa27x_pins,ARRAY_SIZE (pxa27x_pins), +return pxa2xx_pinctrl_init (pdev, pxa27x_pins,ARRAY_SIZE (pxa27x_pins), base_af, base_dir, base_sleep); -return ret; }static const struct of_device_id pxa27x_pinctrl_match[] = {
Signature · 1 line
2.25.1
Quoted 8 lines · On Mon, Jan 10, 2022 at 2:27 AM <[email protected]> wrote:
From: Minghao Chi <[email protected]>
Return value from
pxa2xx_pinctrl_init()directly instead of taking this in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by Minghao Chi <[email protected]>Signed-off-by CGEL ZTE <[email protected]>
Patch applied.
Yours,
Linus Walleij