summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-msc313.c
diff options
context:
space:
mode:
authorDaniel Palmer <daniel@0x0f.com>2021-12-13 12:40:34 +0300
committerBartosz Golaszewski <brgl@bgdev.pl>2021-12-20 17:48:58 +0300
commitbef4460b85501759d0441125c739dff8b088d11e (patch)
tree29422a1660386554813ef9a08e7f44b9ecb75665 /drivers/gpio/gpio-msc313.c
parente82513696eadcf71048be174b4b71f9903ba4afd (diff)
downloadlinux-bef4460b85501759d0441125c739dff8b088d11e.tar.xz
gpio: msc313: Code clean ups
- Remove the unneeded assignment of ret before returning it. - Remove an unneeded blank line Signed-off-by: Daniel Palmer <daniel@0x0f.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio/gpio-msc313.c')
-rw-r--r--drivers/gpio/gpio-msc313.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-msc313.c b/drivers/gpio/gpio-msc313.c
index da31a5ff7a2b..a894bafbd4c3 100644
--- a/drivers/gpio/gpio-msc313.c
+++ b/drivers/gpio/gpio-msc313.c
@@ -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);