diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-01-13 11:00:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-17 13:38:02 -0500 |
commit | 45e861a1c12cfd717b8e47103f1aaf2e34cc6688 (patch) | |
tree | e11da5cc72b079c2606be7f210d99189b6ceec2b | |
parent | b996356d305fd311eaa652890b255a0ff4d13de4 (diff) |
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>
-rw-r--r-- | drivers/spi/spi-topcliff-pch.c | 1 |
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) | |||
591 | 591 | ||
592 | if (!data->pkt_rx_buff) { | 592 | if (!data->pkt_rx_buff) { |
593 | /* flush queue and set status of all transfers to -ENOMEM */ | 593 | /* flush queue and set status of all transfers to -ENOMEM */ |
594 | dev_err(&data->master->dev, "%s :kzalloc failed\n", __func__); | ||
595 | list_for_each_entry_safe(pmsg, tmp, data->queue.next, queue) { | 594 | list_for_each_entry_safe(pmsg, tmp, data->queue.next, queue) { |
596 | pmsg->status = -ENOMEM; | 595 | pmsg->status = -ENOMEM; |
597 | 596 | ||