From patchwork Thu Sep 22 17:45:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9346139 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 B93C7607D0 for ; Thu, 22 Sep 2016 17:45:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1A2A2ABD6 for ; Thu, 22 Sep 2016 17:45:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A60B52AC07; Thu, 22 Sep 2016 17:45:25 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A3492ABD6 for ; Thu, 22 Sep 2016 17:45:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BB5CB6E91D; Thu, 22 Sep 2016 17:45:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 99EB26E91D for ; Thu, 22 Sep 2016 17:45:22 +0000 (UTC) Received: from [192.168.1.2] ([77.182.99.72]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MEIQq-1bkwC70Y2q-00FThi; Thu, 22 Sep 2016 19:45:19 +0200 Subject: [PATCH 13/14] GPU-DRM-TTM: Delete unnecessary variable initialisations in ttm_dma_pool_init() To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Emil Velikov References: <566ABCD9.1060404@users.sourceforge.net> <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> From: SF Markus Elfring Message-ID: <58dbc452-eff7-3ef5-3a61-4ec4a26fd15e@users.sourceforge.net> Date: Thu, 22 Sep 2016 19:45:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> X-Provags-ID: V03:K0:vAGyI6x47hEQPrtdk4Pe4WeftOh/qfoOy9XmouctTZTK0t7PJJ6 EHDoBuJ0X4dHN+ggoAtHwDtZ/8tl3qQqO04+OqFDzvDVcIuwV6GHzgAr9PidzXhj0QYA6dT VLmR0ZLD/1rZTr+ucJdTdJW1Uv8OPG8HmolYSclwDq4k7OVKApNdI6BXjgb7ysyCTTndZ6m 067pu9HRzgZmeU7UHokZw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/G1+eXGTPEA=:pWDRZTWYpr+jgScYG5aviU Jb9p7yEjxKLBJDh7CkUREjCvVvwH6evOQSfimOItSmv3yT3XZH6RvFyziMV1j0fvB2M9CHy6R lM1dKLwgDNHNzqgW/Eehd6m04tyoxayFbgx+WhRHignxRqUy98VJBAh7HMgDTIWOmmnB66uYR LDOdoorZxjYV31IMLVxOivGX4uTSDgeUFpVP+8lqQagehRn7kUUDBzKUjhiYOX6ZSXkqajogZ RiHDMbGt0E32uzx9koA6JNu9MeX3Rp9jUFCmcgJnYazC5vIUMUtaLeBrd8hepZegkCSmg2uO1 hO2mOI84mHPvDW4w540LVy2IR/KDQb7FvDWMbi0t0ef5jf5QsW3syj3rNDHr0yhGl2k9OTn9T ZprWZHWE7wdSe2YZ37ldvLMFh0SGJXRheRMXMVJFLtIJ2nvXW4k1QDMDlP4rHmCUG0Pk0D7+5 Ah7RCOF2pOfzEbkEoFbByvaB51yGpu1QZqOAvwnYTPCL+w6gjB4jS7k1TwFIVyZc/tODVojjx qYxNMa7UqoGMBxZxzgGmUo0zEWZoFTVJp5+k1czFja56oE4mZWvN4K5dNj/Y5gdO2avzT5cFk NAg981UdIJ6U5IuCp2lqABZ8I/83NIah1Ohq13y3eDS4qs8vfunGQquBTHUas6GW7fSsfa+i0 jEf+VCre/trHNG440McBCIaYHHUETxvIHwB42CpaqYMJoas0KuLKJF9XbEfk/Tc9gD1b7Q789 9axfo6HFnXRHRDVj95wpNzCyS0AwmZBx2DKeHgHJb/lyEAUfExvjmdxuRZwDso5Ac9/0ISx7f 6r8AFbn Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 22 Sep 2016 17:37:24 +0200 Two local variables will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation which became unnecessary with a previous update step. Signed-off-by: Markus Elfring --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index 4c50196..aa1679d 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c @@ -576,8 +576,8 @@ static struct dma_pool *ttm_dma_pool_init(struct device *dev, gfp_t flags, { char *n[] = {"wc", "uc", "cached", " dma32", "unknown",}; enum pool_type t[] = {IS_WC, IS_UC, IS_CACHED, IS_DMA32, IS_UNDEFINED}; - struct device_pools *sec_pool = NULL; - struct dma_pool *pool = NULL, **ptr; + struct device_pools *sec_pool; + struct dma_pool *pool, **ptr; unsigned i; char *p;