Commit 9777d0bf authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Linus Walleij
Browse files

gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()

parent 9d552219
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -345,12 +345,8 @@ static int cs5535_gpio_probe(struct platform_device *pdev)
				mask_orig, mask);

	/* finally, register with the generic GPIO API */
	err = devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
	return devm_gpiochip_add_data(&pdev->dev, &cs5535_gpio_chip.chip,
				      &cs5535_gpio_chip);
	if (err)
		return err;

	return 0;
}

static struct platform_driver cs5535_gpio_driver = {