Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932576AbdLOQey (ORCPT ); Fri, 15 Dec 2017 11:34:54 -0500 Received: from mout.web.de ([212.227.15.4]:49785 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756697AbdLOQes (ORCPT ); Fri, 15 Dec 2017 11:34:48 -0500 Subject: [PATCH 1/3] rapidio: tsi721_dma: Delete an error message for a failed memory allocation in tsi721_alloc_chan_resources() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Alexandre Bounine , Matt Porter Cc: LKML References: <33c63b12-7828-891a-31ef-76a2e3c6b90c@users.sourceforge.net> Message-ID: Date: Fri, 15 Dec 2017 17:34:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <33c63b12-7828-891a-31ef-76a2e3c6b90c@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:l+qjxpwxovMimGLou5C5JzYaHZE0Fk1NQskNbJHzB0ZGJLzP6JO baceVhlAtV5arcu7waAMD0TcnYpRBMoY/fCFPQmb7MNuEcSmT4cT/GgSX0jcHr1iFlmFz5l n2eC6deAAtT+MKN4IN4HdV9hDi+cdGKO03dFgt3xPaA22H56MSBP1KcVrHFv/FuC/HRbq+2 uEEtxUFbq/ufe+SJ1CWQQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:WIT3f6CT0z0=:hUI0fL4R7owro2cHZekThV jKtgGnYsRseQAZ1/aav8f3AkNXtNG0kybfQwgnW7mix1oCNhbsksoZ82R0oL+qK4fcTJ7mcsc 3mTpQoV4T8k5adOTLNDKQOlPoQQHBqHvfjmgmq8km7loUf+zEyqbfkBYzUoNWFlwNVKEVt0Mc xmDDq73M8qZ43liiAxjS04r5Wk9KYIQ/EV66jiKN6IFp8wmzFgOX4t4EDK1J2OQ29KhVsVfHX mNtMqvwQx7faryFEnklHOG+Bq8R31dOgKyuhr+pK1zWReGvCCA/yr8cxdD62/3uMuBHyxBemQ YYtc77mzkibNUklCleatXTIwMcZgFjVL9fKHs/kutqdf2ZbaF8lYgOBR0C+yK+lTAMHPPPz6I b564b8rbmsyBT4vhyIMi9XYSRFdoflvq8zj7kVzBlO8ZbBaj32mPsJt3mN3Xxs9lxAh2S9sJg qsk+fs64Io/zYgXW2ZE02+0DGjWnlsTLWVN9qNz5EuLjFAxjWU0tu+OqMDOho5KZ8c0Zbp3VF ia+hpEPPH39NMvtF2A8rUnzcE6RQ6T3naPQ0a3Pepcy2J4gLnE7u3ANi5j1Y2MZfiP77YdFbe FugnX5GtwBGVQRU1ehkERJTFksnT3RS5/5dSzC8VG0feRI6lehEWECjYccXP5BHNgnnT1cRVy jNkq70zpws6aRXi+AmgCdk9E34wZIscBnwLVK8VhWNYK9YUBjL6+qhh6zih1sx9Ii1+7hJ5cH IhicxNvJ6KZxkdzHhW/K/Bg2ZKEjeY9X5P0oAkAq/zbgsKfxsXIiqmGLQNnET1oGuLk9KVvrj coQfGLoKIvf9RWG1UKVaQwgNDl4NtoVC+HOSOjJhZEK8eCTv8g= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 937 Lines: 28 From: Markus Elfring Date: Fri, 15 Dec 2017 14:11:08 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/rapidio/devices/tsi721_dma.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/rapidio/devices/tsi721_dma.c b/drivers/rapidio/devices/tsi721_dma.c index e2a418598129..f7bc85a27d1b 100644 --- a/drivers/rapidio/devices/tsi721_dma.c +++ b/drivers/rapidio/devices/tsi721_dma.c @@ -754,9 +754,6 @@ static int tsi721_alloc_chan_resources(struct dma_chan *dchan) desc = kcalloc(dma_txqueue_sz, sizeof(struct tsi721_tx_desc), GFP_ATOMIC); if (!desc) { - tsi_err(&dchan->dev->device, - "DMAC%d Failed to allocate logical descriptors", - bdma_chan->id); tsi721_bdma_ch_free(bdma_chan); return -ENOMEM; } -- 2.15.1