diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-10 21:46:30 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-02-22 15:25:23 +0100 |
commit | 9117d40b5dec65fb4b1320cbad54c9c9e067de00 (patch) | |
tree | 08e7e64e92ea4e6412d8f9567d343fcd81635085 /drivers/gpio | |
parent | 2c3087e1649fe4391b565fc31f588670e11fc4d4 (diff) | |
download | blackbird-op-linux-9117d40b5dec65fb4b1320cbad54c9c9e067de00.tar.gz blackbird-op-linux-9117d40b5dec65fb4b1320cbad54c9c9e067de00.zip |
gpio: omap: Delete an error message
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index ab5035b96886..4db6f13fa133 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1158,10 +1158,8 @@ static int omap_gpio_probe(struct platform_device *pdev) return -EINVAL; bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL); - if (!bank) { - dev_err(dev, "Memory alloc failed\n"); + if (!bank) return -ENOMEM; - } irqc = devm_kzalloc(dev, sizeof(*irqc), GFP_KERNEL); if (!irqc) |