From patchwork Sat Jul 16 14:56:40 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: 9233259 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 7389E6075D for ; Sat, 16 Jul 2016 14:56:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65B522236A for ; Sat, 16 Jul 2016 14:56:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AB4222638; Sat, 16 Jul 2016 14:56:55 +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 EC7EB2236A for ; Sat, 16 Jul 2016 14:56:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 702EA6E04D; Sat, 16 Jul 2016 14:56:52 +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.17.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 814C96E04D for ; Sat, 16 Jul 2016 14:56:49 +0000 (UTC) Received: from [192.168.1.2] ([77.182.189.163]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MBkHT-1bY5vB1SNj-00AlBX; Sat, 16 Jul 2016 16:56:42 +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> <165123f9-e2ba-04c1-e91e-557c2d81ed21@users.sourceforge.net> From: SF Markus Elfring Message-ID: Date: Sat, 16 Jul 2016 16:56:40 +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: <165123f9-e2ba-04c1-e91e-557c2d81ed21@users.sourceforge.net> X-Provags-ID: V03:K0:Y3jcol5MKy6+yGraTRwlafLs/LHccbHP+Z37OGSvBVsBRJw0t3v WfF+8mUZnWcidH1KQGuCgEqJvLQxQTnWdh+wb8IBcCNUlIhvMBTH5pWQF7sbcapLb2nkpMy lQCwQSIr0v8mpIkv/0WFadbXC+yAGqCz+T+ov2l8A2qk9kbK+sVmdk33moAsptqqIlOsJ1b Ybr5kt9EtcpgcKCQ5Z/Fg== X-UI-Out-Filterresults: notjunk:1; V01:K0:eLww/mnYU64=:3590hH3rN8z92B4YL1xrcU W3EFHUN9+Fwxbcepg4fsbzpEj8iqsuv6Ka7g/rY2chH9kQvLvULht9pRCHbToCeqNKry9/MVX fUJBjbKZtNy1tnpn8sDXYmRNnioQjqp/rWmeLFth+yVaDY8XWKbYxbY2F62TNsRlj/0gp0MW2 jAoWP+AhdzkuPG38nEunYPN5GfYYMDGDIkBqPQXfVRuHL34P5SFg9gV7j3YrBMiMAwgTZ/sHs 1Gyztab9M7CsytpnAnY0Cdo9ZHE2O7Ig70uS18vNL+h1PiF6JtdaNyS6n7J3X6xl6bwxhpTty mPQQR0aVYfyWJe3wpstEyTAcHFDN3R2WuNHX77So2XRXMQ2fPQrTS1zQhYTSoxhfHA/Qjb4Sj DDVbB1ZOU3oLDgmAieBosZKG4W86e0bGc1vtYEDZO95K2v2T+MTt4tjFaSyB4Gr0ifxXEZfnm +Iwnz+VSMBsUImW7oMHUfxslKgZIeW2h8VMPc/ONjJBSV3UoyKZNdttSJFHLq0PIJLHWC52mh n3PXaAlK3PGeTmaPHmNnJ/sZHK0Ukb3Ku58msCqTlbP1uPg6PmWicixImEkSQEAdYKSu2MF7y +hHlYMi1gotipH5EXHSXPkQ91Ktr0g1A2VGJnuYS2fHlIMdopBaQkvrpgOltJB1m5TkXLAB2o uCdMi+Aplcm/kS3b71lXjNE6ljIu0bR3nJjBMDzksKCqd5lDgdcajMf+bMVn26VVEQZrLBPwB I9jILP5u6+jQmX1HVxZuK6WaK2JmZXHyJ4lr7HAKl9Yh4uzvKsTBkNFAc4KN5693ngDbl3luH KvlNQG0 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;