From patchwork Wed Sep 21 16:45:05 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: 9343911 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 A2FE76077A for ; Wed, 21 Sep 2016 16:50:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4EDE2A7F7 for ; Wed, 21 Sep 2016 16:50:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99BE52A7FB; Wed, 21 Sep 2016 16:50:27 +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 DFE692A7F7 for ; Wed, 21 Sep 2016 16:50:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2B4B66E873; Wed, 21 Sep 2016 16:50: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.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 187156E873 for ; Wed, 21 Sep 2016 16:50:21 +0000 (UTC) Received: from [192.168.1.2] ([77.182.212.253]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0LoHfd-1bKGRq0bKj-00gEvQ; Wed, 21 Sep 2016 18:45:11 +0200 Subject: [PATCH 04/14] GPU-DRM-OMAP: Delete an unnecessary variable initialisation in tiler_map_show() To: dri-devel@lists.freedesktop.org, David Airlie , Laurent Pinchart , Tomi Valkeinen References: <566ABCD9.1060404@users.sourceforge.net> <0ea38611-3d93-0ade-a1fb-f8cc2e0b8d61@users.sourceforge.net> From: SF Markus Elfring Message-ID: <2c2d4ab1-7815-cf7c-ce93-7fc2c569c053@users.sourceforge.net> Date: Wed, 21 Sep 2016 18:45:05 +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: <0ea38611-3d93-0ade-a1fb-f8cc2e0b8d61@users.sourceforge.net> X-Provags-ID: V03:K0:cF4IhSTrxoVEUKiHoOfvuevLB/JNU30XopLxI2F4O6yVTbs9wip 2wnkBmw2r9WtNv/OzGc0RkM66M06jfjBsqWw4XGm5DfJf8ksDcXEAi7/n+A4EDqYdxWpleF VxRcyrlTxhGSDvhOx9l1xYGoreQbcHF2I9mhVY8/mgMO9VDS4fLnWXDRrDvxHe6EgdkVuf3 PSejRBekTegQS9mUHtkBA== X-UI-Out-Filterresults: notjunk:1; V01:K0:StOLjEHMA0M=:wB4I21yWKM2qXNBwJnMdGz S94JzhEwVfsZHhS6ThLKx5RnhBK7PzkKvrMMa7BAsow6EG3NKWv8FJrBitVUqc73HOAId683u XCWJVMkPoiaMKJ3QRDOaU21m6pcTr93Ct5IACaqnbHBsR7kShSjTagqdGtA0JmgvYI0tY0But Puqhm0doGyqJuYSTyx1/N32edz6LI7GqcP1INd0Ummk4ZB2Zc9p0ohXmHRjdRxvZ+4Vd897eF je7ejTvoK+IH9vdwMhVx6JqLvBjin8T5SLSAG8rYtU6Qjc+armOqCkWI4hJkBGbvvJU27L+pT WpgYX5kwUfUxPxibUs1EHoRydxj8Fqp13LCtFcQZDoUS3mJyYxxSfQ9Yc0sqFAogUFMTIWrmT GHSqJUu8ggCxsDdGqwG2DTTXT6c1uIV3267GlDGz2E8F+O4r8QA44U9lslZNTZzWovXUou/tC 5bsITPbBS0g1Jq/eCpCGmN6fEYecEtRTFLLQQjC1EBAXHuF+0KqcZ2zWhfa3mDNFrLIyNoA8C Tly+D6vLxstz0thjRsI/AyAep225OzdB4dFkHLESNMiDyPBWiflPsLamutzhJGuVv0Pp0qab7 lO0iaU2vlaKbQeD3mtqIb61fRehSlq0SUhXbT2fDj3OrIoZ74SyJGrS195zaDpyMScTeeozYR 4ezb4L2J19xMqGEXzJWvrX7yvs5UyiWNAj3g3Fae00zsWEWekczJ87P+ax46EQh0LbfI2sbdN twbHen+IzQKBS7xrTZt+LExwIW+icpn8IJ+ZytSLLFhTY0VNg78jpYzgEX7FV/rGsopDBR9rL cbaw+Hv 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: Wed, 21 Sep 2016 13:31:45 +0200 The local variable "map" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c index 60beeb9..c262ef5 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c @@ -896,7 +896,7 @@ static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, int tiler_map_show(struct seq_file *s, void *arg) { int xdiv = 2, ydiv = 1; - char **map = NULL, *global_map; + char **map, *global_map; struct tiler_block *block; struct tcm_area a, p; int i;