From patchwork Sat Jul 16 15:10:28 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: 9233297 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 1B5C16075E for ; Sat, 16 Jul 2016 15:10:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D4042223E for ; Sat, 16 Jul 2016 15:10:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 007B8223B3; Sat, 16 Jul 2016 15:10:40 +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 ACA432223E for ; Sat, 16 Jul 2016 15:10:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 184F26E2D8; Sat, 16 Jul 2016 15:10:38 +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.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id BAEDF6E2D8 for ; Sat, 16 Jul 2016 15:10:35 +0000 (UTC) Received: from [192.168.1.2] ([77.182.189.163]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MbhRh-1bhL853l2b-00J0Es; Sat, 16 Jul 2016 17:10:29 +0200 Subject: [PATCH 8/8] drm/amd/powerplay: Delete an unnecessary variable initialisation in phm_dispatch_table() 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:10:28 +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:lB6HtB1iHQrB6mJBziik2msYMwVK6Es3dRhvS7zcgveSGdOhq3p 7AXAGfWDons+Pbhog1ad8NOxErn2mJONmXBnHa8EFFYxhovUKRSA5MUkV2YRhZHtrZADFW/ KN4k7vhoNalSoWFj6FpnQwOx0sKSqe7PuvRy5ssVDLZknVXS8h2acGLqwGIp0BqomSLx0qv M9bTEFw7Tcpfxj0FU73Rw== X-UI-Out-Filterresults: notjunk:1; V01:K0:2Ah5ZvG4ZhY=:W4PI4kPWvQD4rMDSXTfQ4i bOXVWCdSgjxdhb/q9RgvfI/2BnDQ3BXawCshk6gsVv/2j0C7mX7BPM4gmKbiGaKREVJvRp/wn rZ6bM15zMaHb+sRJdI6DH9zupaQzkb4nuA1OFlw+/xlk/c4q9Qtq/bBMEiFRnb8QMB5FIdOzo 0YCRZCpNl+hVPfr1qNpQvm67XfM7hSzwY0ND/4It86wIM9XzCASvQApdmlZWBB9kDMwWF6vI5 QbJjrYEEcItnUPyR1QY7ZLt0skul7D69/ob4ZaRW3tNNBMprte1CjXsHMnLRMIQOUg2OLID8L 1Ws+yTZk1sBIZVPjM+CIIVWEcO+CL3effIfkEleQpeXwTFUlw17FNxwQXoaDK7Duj7H0iNENE dmlVyiynSROTQekrT7F1VajAHDycRCYsLIRtTXVGY8D637bHYEvfShzDd8/t8QQGvvEA3JaVA /oczZ2A0RFAWftPPKuTv1Eki8/tulIHx0NqKBO1wzoGcm60+ujW9Bzkx4rnxaOEZWew0r4xGe YQTjAU+lyNKiwMCB/iOrzi0Mi3sKnMzfsMiRHAIHVsTUjbX8qzTZqFADMDb3h2YHz3UWGk7md 0hfiRzww3S7G4xHKFWHWJj7lu1uuDNk0EGOjNodfGn1GjkrTZHrg+e6QQjy2j98+0ansUtYGe LRp6K5s/UzaH9+swuMEknWhRHNolXW9G84tgMpEFHM5WaJ8dnPb49u2QIgFvA77adNUsqzuuY yjXN40+DJhmlZRnhtDTqhKZztow3W5YXMSyvlZnpxGn1NRjdOGXaY1xGBVgkLixsZu/xXFVag FAb/Hq9 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 0bf6f3c40786e12d3d42672f1d56296b30e17ac9 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Sat, 16 Jul 2016 15:50:18 +0200 Subject: [PATCH 8/8] drm/amd/powerplay: Delete an unnecessary variable initialisation in phm_dispatch_table() The variable "result" 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/powerplay/hwmgr/functiontables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c index 735aeb0..fdfed63 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/functiontables.c @@ -59,7 +59,7 @@ int phm_dispatch_table(struct pp_hwmgr *hwmgr, struct phm_runtime_table_header *rt_table, void *input, void *output) { - int result = 0; + int result; void *temp_storage; if (hwmgr == NULL || rt_table == NULL) {