Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756895AbdLOQg0 (ORCPT ); Fri, 15 Dec 2017 11:36:26 -0500 Received: from mout.web.de ([212.227.15.4]:56471 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756717AbdLOQgW (ORCPT ); Fri, 15 Dec 2017 11:36:22 -0500 Subject: [PATCH 2/3] rapidio: tsi721_dma: Delete an unnecessary variable initialisation 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: <728d8e20-4ae9-d661-d932-2d99ce67e71f@users.sourceforge.net> Date: Fri, 15 Dec 2017 17:36:15 +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:U9axNhAggYd22SF7BrHQynC+QOcE/Z2OUpoUeiA8oeSuWYBsSFF wEhDNZeoCeEFPtEnofCIIchE8H6RJIxZG7qA9CeNAgIxqDKI6Brhj/RMMuOFZcYxvG/5E44 hhdxXFOnD4AJdJSLtmjeqXIydPl2Rkhz/Q/VIDHnwWZAhbFDw3bkGzvA+w9aytvZuwt68au zw1Q59P7Iw+HNe08xYe4g== X-UI-Out-Filterresults: notjunk:1;V01:K0:uH4qgAT03IY=:VsnX0W7YGz+xgpgNduyAdw so2ueVZaud++cQafUjUfVaEpVQ4SHhiWLRNC3caXgcw7V+v2xCCXsp/l88oQ9n1YDN65X4HKe 80YmI/DNUzL6jvTd4dxB636nt3qAviM57t9eiuE4sSy1snAsgkI6NoaPgxXcsvVo0f7CyrJsK dSCswIZEaZoMpYrt1fOOA1hoGFoXdbmRHEsoEFx6AthSIAQ39TCYDwLHYNwhj0M05iyFqzcpA qLLEEhmFhqPynY11VNgisBAVMzi7DOLB3U8Y1lyLfMa3PDe0h4RUJm60lGz24X73RN3JJxK/k AumxVz9DCky/MFwH2XV1SLFZFF9RTF00kq1BaneQbnYhIPMvFuanZD88dVtrBkxHr0SW0aXBT A6A/+h2+VnXFL/bTdTDRQkOpG+D1zqhrMJu86Tv0diTyrJScgnxb7JJTzPe+1xUbBQEbbZ0L5 xWKJPVCWaIqaSlt2xLhir1ma/aAZHtP4eQ49Dlz7znYsI/RpEzTV2glTT7PTrBG8CcdkNRxLb fKLFYpYPS+KlHbprUTWnKlv1tr1tGr3+i82C85FaSM3ZwyfIsTp5qHu0xiTqOTsBGwVAXBQIF 9masshZnYOKNCMj3SX6fz3QnR7GikfB0LUX/6n6wZgyL3mTaFyyAxWa4ItsaE+Da0PTiRhTUe 4ZjeDaYgI6jQ/amSceJf9Pf5kpcX1cNKLdUfedN4JZ1Hjx5WWRemxpzaMBOZxdHcvBV4cmrGq rOqMsl3rQ0SYUhZ/4dk9UYAlmQWBKecJpA2QKuSP4Ty2JGorN5k3gg+xCiJDN4HOQgooD9m9c yRA0ThM9Maqe3B1Rh+yKSF34ywlqoQn5xio06UZsHQzE8FoXRw= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 989 Lines: 26 From: Markus Elfring Date: Fri, 15 Dec 2017 14:22:44 +0100 The local variable "desc" will eventually be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/rapidio/devices/tsi721_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rapidio/devices/tsi721_dma.c b/drivers/rapidio/devices/tsi721_dma.c index f7bc85a27d1b..14fc36ac3d85 100644 --- a/drivers/rapidio/devices/tsi721_dma.c +++ b/drivers/rapidio/devices/tsi721_dma.c @@ -735,7 +735,7 @@ static dma_cookie_t tsi721_tx_submit(struct dma_async_tx_descriptor *txd) static int tsi721_alloc_chan_resources(struct dma_chan *dchan) { struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); - struct tsi721_tx_desc *desc = NULL; + struct tsi721_tx_desc *desc; int i; tsi_debug(DMA, &dchan->dev->device, "DMAC%d", bdma_chan->id); -- 2.15.1