summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-topcliff-pch.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-01-13 17:00:08 +0100
committerMark Brown <broonie@kernel.org>2017-01-17 18:38:02 +0000
commit45e861a1c12cfd717b8e47103f1aaf2e34cc6688 (patch)
treee11da5cc72b079c2606be7f210d99189b6ceec2b /drivers/spi/spi-topcliff-pch.c
parentb996356d305fd311eaa652890b255a0ff4d13de4 (diff)
downloadtalos-obmc-linux-45e861a1c12cfd717b8e47103f1aaf2e34cc6688.tar.gz
talos-obmc-linux-45e861a1c12cfd717b8e47103f1aaf2e34cc6688.zip
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 <elfring@users.sourceforge.net> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-topcliff-pch.c')
-rw-r--r--drivers/spi/spi-topcliff-pch.c1
1 files changed, 0 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud