]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: em: Remove error messages on out-of-memory conditions
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 May 2019 12:40:50 +0000 (14:40 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 28 May 2019 15:32:10 +0000 (17:32 +0200)
commit4c411ce35b866a351bca76b1d853eabdfa58998e
tree27d9c351891aabe4f38874252431ee144c695f10
parentef9ace6f8008125e0f35ddd725ad07ca0de2f3e2
gpio: em: Remove error messages on out-of-memory conditions

There is no need to print error messages when memory allocations or
related operations fail, as the core will take care of that.

Change the returned error codes to -ENOMEM to match the failure cause
while at it.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-em.c