The dev_err_probe() doesn't do anything when error is '-ENOMEM'. Therefore, remove the useless call to dev_err_probe(), and just return the value instead. Xichao Zhao (6): spi: spi_amd: Remove the use of dev_err_probe() spi: SPISG: Remove the use of dev_err_probe() spi: Remove the use of dev_err_probe() spi: mt65xx: Remove the use of dev_err_probe() spi: pxa2xx: Remove the use of dev_err_probe() spi: s3c64xx: Remove the use of dev_err_probe() drivers/spi/spi-amd-pci.c | 5 ++--- drivers/spi/spi-amd.c | 2 +- drivers/spi/spi-amlogic-spisg.c | 2 +- drivers/spi/spi-microchip-core-qspi.c | 3 +-- drivers/spi/spi-microchip-core.c | 3 +-- drivers/spi/spi-mt65xx.c | 2 +- drivers/spi/spi-pxa2xx.c | 2 +- drivers/spi/spi-s3c64xx.c | 3 +-- 8 files changed, 9 insertions(+), 13 deletions(-) -- 2.34.1