From patchwork Fri Jan 13 17:27:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9516091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C2486077E for ; Fri, 13 Jan 2017 17:27:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8943528710 for ; Fri, 13 Jan 2017 17:27:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C14028765; Fri, 13 Jan 2017 17:27:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEBE228710 for ; Fri, 13 Jan 2017 17:27:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750963AbdAMR1d (ORCPT ); Fri, 13 Jan 2017 12:27:33 -0500 Received: from mout.web.de ([212.227.17.11]:55727 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbdAMR1c (ORCPT ); Fri, 13 Jan 2017 12:27:32 -0500 Received: from [192.168.1.2] ([78.49.203.248]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MaJvw-1c8Lp73Xmy-00JtED; Fri, 13 Jan 2017 18:27:26 +0100 Subject: [PATCH 16/17] spi/topcliff-pch: Delete an error message for a failed memory allocation in pch_spi_set_tx() To: linux-spi@vger.kernel.org, Mark Brown References: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Wolfram Sang From: SF Markus Elfring Message-ID: Date: Fri, 13 Jan 2017 18:27:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> X-Provags-ID: V03:K0:Y+IupeoXy7vp+4ikT7clOREtJgraMVJUY4NFkF+EMXy1Pu8mxwT 22os1OW/dsDvjBZbnvwSme0CRKDXFlO1v0zhfanv9p48YNEbDuaAX/gUTwUtWghfK4rKgM1 BBhOqs9XXi4qw1yfAeB0jksFgn745+ecnCic7yb20b0Q4TwSAmHDgRgQhebrZf2iYlT1VTV 6qy2aaj/q7FU9yV8rdDYg== X-UI-Out-Filterresults: notjunk:1; V01:K0:R0s2gVovnlw=:ERDkYPWDnRtB85CUKeUfuz CEyCqplFDf+d85ZepidJDJ/PGA24fMkA7q0+wPeASe17QMSCFdTuvC2MRUtV4QvRexutf1WhH SHDoVi7PjDEdrU2uw7lBGKLQP9NFOmuGua6uQy66OMShUjhNMtQ1mkpjiBO6qUIBhWbBisJwQ sqKIoXIGPZPNqiIEJeEWEvtf+14kxupQQxamBGRhoZQVBl8wVA+jn/RuaVW2IsrnaU3BRc1mc WdKNk66cFI4Me3BYEqckIeeAK9QX6LeP77Kr7RFn6nOqlKfbwczZK0lJ8xLgz7ysbVqGx2nUS pFnCf5Xo7u8ktJ6OH92BdTA1V8lkJBhAq8A/QbiAfDmJqZOSCChFKf7R+TKCnvmAocY0ATtWK L0TaH92b1NyWvJcZauz85W94AHRRVxtnPk/EIAzAfwSSreeHEUcwglHN6vyrfzhTzzHa3B6ny y68ag1GglgM5ZM7AzvdBkmb9cFbcf4NlKe56EhjdbPxD1HNCdD2+vG04E5Qw0ThBeHopd4ZeK o7EQr0Hzp/quZVTsldtm/WjwD4i8AZsO+sVRYzL+6lujNmgINE9Il28cWNa5JUksjXeQk0o/H 7SLjcY3O+4XxHYox4RrjrlXZwEHwoHxe8ZRW86OJJQrz7YPzOGqG25tCTSKIGy33B/uxQ+IK4 s+WtWY0VN2eEkZOCKyRxiaykXBGwmeFHgaJxE+0QDYKvb372BTlWGeJFIG+DS6bCINoRbgvVo 9kgXV/qYmXJmu5fDR3XQFk9qGOk+NJMeVngqovYEB0fhdulYRqzvLa/W4oyKRyGF1OtNrvvxW OORR+8e Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 13 Jan 2017 17:00:08 +0100 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 --- drivers/spi/spi-topcliff-pch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index d36d42653087..97fd1ea9826b 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -590,7 +590,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;