Commit bef4460b authored by Daniel Palmer's avatar Daniel Palmer Committed by Bartosz Golaszewski
Browse files

gpio: msc313: Code clean ups



- Remove the unneeded assignment of ret before returning it.
- Remove an unneeded blank line

Signed-off-by: default avatarDaniel Palmer <daniel@0x0f.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent e8251369
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -344,7 +344,6 @@ static int msc313_gpio_probe(struct platform_device *pdev)
	struct irq_domain *parent_domain;
	struct device_node *parent_node;
	struct device *dev = &pdev->dev;
	int ret;

	match_data = of_device_get_match_data(dev);
	if (!match_data)
@@ -399,8 +398,7 @@ static int msc313_gpio_probe(struct platform_device *pdev)
	gpioirqchip->handler = handle_bad_irq;
	gpioirqchip->default_type = IRQ_TYPE_NONE;

	ret = devm_gpiochip_add_data(dev, gpiochip, gpio);
	return ret;
	return devm_gpiochip_add_data(dev, gpiochip, gpio);
}

static int msc313_gpio_remove(struct platform_device *pdev)
@@ -456,5 +454,4 @@ static struct platform_driver msc313_gpio_driver = {
	.probe = msc313_gpio_probe,
	.remove = msc313_gpio_remove,
};

builtin_platform_driver(msc313_gpio_driver);