Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3239828pxx; Mon, 2 Nov 2020 03:59:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTU3yzJQmpw4UcwTUkiZvJgFQQU/UqS+Lb+2GUINQxx+kMD9Rtze2bBJHyo9jYIM81tmmC X-Received: by 2002:aa7:d890:: with SMTP id u16mr16252797edq.159.1604318376660; Mon, 02 Nov 2020 03:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604318376; cv=none; d=google.com; s=arc-20160816; b=qOkVjifJUJk0pE56GUhivVzOBH6J1NwDnlG34vC6vOOQ/rhfQb0nuPDBSmy57dzdVz PtVpSs0uEmNlBRrH1NxOJ03bqh8HbpRr2RMtvZmpxm6ER9YavFgTMLkX2iATSMfU/Pc6 Uwiu+mhCfn8g9TbIjYNOyNrYzkVucGjc3fIaDsDNhMdjj4WIvNqEHgEXf7FWtKrhs0eF OY2Qruqdlu6/dc0ms4uzQzVM5OtlX3yAI17YOo3bvwtQjOSMowW1Gat/Shc5+3XROIX5 /Dt0sa2Zvfeyjjvv69wtN6ie4qbgz4hbNiTJfg/43lfxfyh1gvi5pKyaboHRuP9wDMi1 GHBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nSVHv8dGvAcrbIjmyVBmIQ3za21Flaa+ho1LGCbatqI=; b=GmPWY8VI8kpvZU2JB882Jbvh9fGir3UfLyuJ4/UsrjZvB1IhO7uAEhG0ARTVvAfh8B 8jDp8jXyb+DA2aH5rm3mhjdx1XpMDqNE18IGgizxRUyWO+4lYo2/hwrvTPdttHMebHh4 Q6Z5VNdcQeWUW0ExIy8agovbWUS+ajxZBe5rvBMH4/7iz+mBMAVO0BsGBfv1wv0DD/KE QtJiFNLiA2wvwEDyn940fnS8B7Rou+lv2Egn9IFgO4LN4dW0MUUnRRc1U5TZfLk8Di+1 5vwTa2rBSFYVT0TQ46zE6KXuD5qVnFK9cE94m20fFImOM9CBNdl9H05IZvkAiVu5SeJW K1Fg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si11083669edq.154.2020.11.02.03.59.14; Mon, 02 Nov 2020 03:59:36 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728561AbgKBL5C (ORCPT + 99 others); Mon, 2 Nov 2020 06:57:02 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7573 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728297AbgKBL5C (ORCPT ); Mon, 2 Nov 2020 06:57:02 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CPrxP73n0zLrF6; Mon, 2 Nov 2020 19:56:57 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 19:56:53 +0800 From: Zou Wei To: , , , CC: , , , , Zou Wei Subject: [PATCH -next] drm/amd/pm: remove unused variable Date: Mon, 2 Nov 2020 20:08:47 +0800 Message-ID: <1604318927-11896-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix variable set but not used compilation warning: ./vangogh_ppt.c:397:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] int ret = 0; ^~~ Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c index 6e26025..355ade5 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c @@ -394,8 +394,6 @@ static int vangogh_get_current_activity_percent(struct smu_context *smu, enum amd_pp_sensors sensor, uint32_t *value) { - int ret = 0; - if (!value) return -EINVAL; -- 2.6.2