]> git.baikalelectronics.ru Git - kernel.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)
commit6b5cd158304e3c8ae4281679be9dd73b3cf0aeab
tree27d9c351891aabe4f38874252431ee144c695f10
parent1cea9b017931cd7298429b167d8c32a4c9fd6e79
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