From patchwork Sat Jul 16 15:00:55 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: 9233263 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 142AC6075D for ; Sat, 16 Jul 2016 15:01:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0122020951 for ; Sat, 16 Jul 2016 15:01:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E93762236A; Sat, 16 Jul 2016 15:01: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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90C2020951 for ; Sat, 16 Jul 2016 15:01:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FCC86E2CE; Sat, 16 Jul 2016 15:01:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 633 seconds by postgrey-1.35 at gabe; Sat, 16 Jul 2016 15:01:20 UTC Received: from mout.web.de (mout.web.de [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 377E06E2D8 for ; Sat, 16 Jul 2016 15:01:20 +0000 (UTC) Received: from [192.168.1.2] ([77.182.189.163]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MQ6H9-1bSa5f2uTz-005F7p; Sat, 16 Jul 2016 17:01:00 +0200 Subject: [PATCH 5/8] drm/amdgpu: Delete an unnecessary variable initialisation in amdgpu_cgs_acpi_eval_object() To: dri-devel@lists.freedesktop.org, David Airlie , =?UTF-8?Q?Christian_K=c3=b6nig?= , Alex Deucher References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <558FB427.80103@users.sourceforge.net> From: SF Markus Elfring Message-ID: Date: Sat, 16 Jul 2016 17:00:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:NwPlvwUPMw1OtmalI+6pwBf+CUJ16quEwbyiCFDowc4yWiM9sc+ 9qvtmK94DalSkBVQUeyvJ/7TRxmyF4wwKEQDbqajuqTMZhl94fmoLMZXKAi9m9ek79cqtzb 7LxEc4ta24U3g9ZSXlZnDlUtQI7OBjcvr6UhPrpZOXhFPB5KJk0SC9BE4eWA9R0p9RidCcj cAT5vBZ1hKOr16m9vriMw== X-UI-Out-Filterresults: notjunk:1; V01:K0:2Vh8O8RknXk=:hSHNgF3V5M7opp86uIpk07 x5++vlfiPPHBeElvHpbKkV32f/uVeP5FV/AEekYI/mw7Qmoo2jwwqNmY/22pxGXOCdEsl0Eez RcURKd+XYAgVZZb34Hf5ZyEGRy7BhDqAbOeOJDvGc1sA3d+0em0n4OF42KyqhGW7c1ga4OI78 Gis8+Byv8ivI+qF8RYO5FlKubuCdfx41AmmGR8UoqD1nSFDSSvn+5pnXojaKr0CRGAtvYW85K 6wfVIpSK1gPIxqUKGg2K+N0za5JmpS13GfJxVNNOAZ5v3p2Jk3ldh/XnlJoHzfyrkecXRkXH2 156gmqL0oHsmhy7im8+kyDLcDKS0wa+HD2aOAw3nLHnAs/QxcbIIKo3ba+Y4+6hNhlE+F//UG pVxc+xuXYQDOqu5eHHYe90CLBMlf0m8TMDEyjZq/J2L3ElLOGUQymV/Rz10wCtI91I88A6IEb 42Wv6B9o7bz4LkoPI36DKVY+p/eBYK/tBpel0ApzQTe2ZNg0V3j3e4Unc6S1j/5jC0ivAzLiZ 6ZbHHlDeLifFeIcUUMGnSmWlZ3bZ2XRPxOSmnOwZwDd2GylQufMQ44T6hDkzIrGMz/dScEVDg CFuYcYXv+JENfhbNd2I/PJn8/VZRObtgBhIyS3ExK7JVIsbZ6LhMQA8WxWGFAUeslN5aCEOU8 cDspSYkmIgFTHXrdfZztdy0M3vXyd8sWGJzYuGk8jo4A0voJqw3oiROOlBUgGaHuzJlek5fT2 pkK74ZDJdw89W+fPCoBhsSIdorChTpn9qT4VW5iSoMQssz7ejiNVzxpQf6Vrkhg2GNUGtPSJp fh0xMkT 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: Sat, 16 Jul 2016 14:54:12 +0200 The variable "argument" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c index f5de510..47f2a43 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c @@ -905,7 +905,7 @@ static int amdgpu_cgs_acpi_eval_object(struct cgs_device *cgs_device, struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL }; union acpi_object *params, *obj; uint8_t name[5] = {'\0'}; - struct cgs_acpi_method_argument *argument = NULL; + struct cgs_acpi_method_argument *argument; uint32_t i, count; acpi_status status; int result = 0;