From: Markus Elfring Date: Fri, 13 Jan 2017 16:00:08 +0000 (+0100) Subject: spi/topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_s... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45e861a1c12cfd717b8e47103f1aaf2e34cc6688;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git spi/topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx() Omit an extra message for a memory allocation failure in this function. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 2b9405819075..97d137591b18 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -591,7 +591,6 @@ static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) if (!data->pkt_rx_buff) { /* flush queue and set status of all transfers to -ENOMEM */ - dev_err(&data->master->dev, "%s :kzalloc failed\n", __func__); list_for_each_entry_safe(pmsg, tmp, data->queue.next, queue) { pmsg->status = -ENOMEM;