Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3981512pxb; Tue, 7 Sep 2021 11:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydVnIH3ZKpqQ1ni87xXnZK3En6jmutfRyy+UZL+BYGYTuxs4C9clI82t3Ppw//ETEW8ZKZ X-Received: by 2002:a17:906:5384:: with SMTP id g4mr20031230ejo.27.1631040540372; Tue, 07 Sep 2021 11:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631040540; cv=none; d=google.com; s=arc-20160816; b=YljRBmos30tk8MtccuDWXetCxqQlIK+41R9I+KE+kj4zAt7P4UF9b4FIWdEhQEQfOo V9dlBtUXFe4UJWd/DyZGUx1Soeqi4ZW9wlUC5lcidbmO+bFWbq2028SaXebbj4oTw1pe lOYu/cI0igETcn/Yyr+w4tFinP75HOU7TwlNggcRP9zAxaQbaVryGQsSnHIzot3l11q4 CZm+3QE7T6c04YqbHvUQe5jPurmS8dALyS9jHY+ZmIjhagPzcvxJKq/9tuUCZTwgg/ie EZIrAnpoaiJGMw5IP95od7o5wYf9eL4udCpb2BFgVmPxXq5cJ9IUcQxDUZ7d/6m4690K zgmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LvLnME+IjjXBdlapd7qwu3ckCRmUspxnvArgV5vhrZs=; b=mSicsu/Yhprzf0arB29mGR2qON6LjUyjZ97MikHLzOlh87YNPl8lNDXDKvzfAqTuhd h4rpLFi92Prb6iJ5nMUG/hOUwDvY2JbxtsARMGe6IQRQrb+OmkJ80WU2A7jv1yxToxpj km3brnmhrzjOVmcN7PRwsqMfTMUL9aK8OlM8Wj3T3rfhJE9SzlRuKvdOxzbb7k86SZdc wJuWl36kKf0gJ35wUf33fQZVUvl0XBnA6+mNzj4dN09xLg7mqLgRvAG+Pb/5YPLln/nj ZQq1TECXmcLy1+uCsmRmoQLng+l0mgOffW/jKj4NH0lMMI0/gVT9Rah5zKL7D51e5XcV Z1eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p7bvjkWX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si12075903edd.273.2021.09.07.11.48.36; Tue, 07 Sep 2021 11:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p7bvjkWX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345354AbhIGRHP (ORCPT + 99 others); Tue, 7 Sep 2021 13:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344942AbhIGRHO (ORCPT ); Tue, 7 Sep 2021 13:07:14 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26495C061575; Tue, 7 Sep 2021 10:06:08 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id s20so13654693oiw.3; Tue, 07 Sep 2021 10:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LvLnME+IjjXBdlapd7qwu3ckCRmUspxnvArgV5vhrZs=; b=p7bvjkWXysVTS4dKlzkBHNI0Mh2Ex6LJErKRsDYC6PVaIdcwIhfzGMNcrVeAvjcB2N lPjSwJBCVFki7J736XxBScmH+iYS31DmnOhzzHcq+Yrql2ayrSwZprAv3+CImVQSQVCQ psPhSwmoRy0mL7JL4baFLy0N5j4thDzc/tRP2ooL7dF7FFtRCVI4fGbNjrKgzP29Nwal BTpKD44nZRaJRiNT6o/tqQzfFxbUi1TKdMNL/cj5LpMvVNKwKK4+UCmfO/FU9Fa3Z22n GYhUyvfOQim9/RaYGbZsfFOElPt2QDnQVQkkHEaJJzLSTqlgovAAl4l0CJaGhCJio3D9 R8sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LvLnME+IjjXBdlapd7qwu3ckCRmUspxnvArgV5vhrZs=; b=TOE8K5UlMm2wcZ9ABSIYytgSJ+F4QFWquzxD17EFrtceJ7gBAUPgfJQ6c3YCbo6GMA T+eCax0Cwu86K8cmhE+OKx116k1EZMHvI/TKTrwwoREc7JvssZn0MHDQiRKTTOQmVnSc QUIjzFw6YkQwbPkupLjsLqPU14IY23zJBnANHmEI2js3WdW4mGfTDN/Ls9Cq+e5TbU5G FE8SJ8NrFm/7JVHMmGJTL7Uhjp6dsx2yorBjjSA4pbj57sV7O/UygSj+uqFhHPyLTrQj 1jC1ulCutbrvy9L/zWMh4UrEek+zkYYLtx3MMxYKZW/aYOJt+JmrqL5eXQAKDcJS/egA CgwQ== X-Gm-Message-State: AOAM532ZEGq+/YB+aRVv7psT8rszEydeB86608QZQHQOXDWeeZm2HvMM dshN5VHMfZN1sEKB3+24HtLNga3PxIwwZAo8JnUpM/fy X-Received: by 2002:a05:6808:483:: with SMTP id z3mr3622068oid.5.1631034367521; Tue, 07 Sep 2021 10:06:07 -0700 (PDT) MIME-Version: 1.0 References: <20210907110913.15499-1-colin.king@canonical.com> In-Reply-To: <20210907110913.15499-1-colin.king@canonical.com> From: Alex Deucher Date: Tue, 7 Sep 2021 13:05:56 -0400 Message-ID: Subject: Re: [PATCH] drm/radeon/ci_dpm: Remove redundant initialization of variables hi_sidd, lo_sidd To: Colin King Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , xinhui pan , David Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Tue, Sep 7, 2021 at 7:09 AM Colin King wrote: > > From: Colin Ian King > > The variables hi_sidd and lo_sidd are being initialized with a values > that are never read, they are being updated later on. The assignments > are redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/radeon/ci_dpm.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c > index f0cfb58da467..ac006bed4743 100644 > --- a/drivers/gpu/drm/radeon/ci_dpm.c > +++ b/drivers/gpu/drm/radeon/ci_dpm.c > @@ -390,8 +390,7 @@ static int ci_min_max_v_gnbl_pm_lid_from_bapm_vddc(struct radeon_device *rdev) > static int ci_populate_bapm_vddc_base_leakage_sidd(struct radeon_device *rdev) > { > struct ci_power_info *pi = ci_get_pi(rdev); > - u16 hi_sidd = pi->smc_powertune_table.BapmVddCBaseLeakageHiSidd; > - u16 lo_sidd = pi->smc_powertune_table.BapmVddCBaseLeakageLoSidd; > + u16 hi_sidd, lo_sidd; > struct radeon_cac_tdp_table *cac_tdp_table = > rdev->pm.dpm.dyn_state.cac_tdp_table; > > -- > 2.32.0 >