From patchwork Wed Apr 7 08:23:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 416670 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp259528jai; Wed, 7 Apr 2021 01:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwijSkNYGugqQHuNzzdVZ+Uo5IbY+XqBghVc7uNC7zOvYWnX5j3TZLQZ4XsvvF8PskpXInD X-Received: by 2002:aa7:824c:0:b029:21d:7b2d:174a with SMTP id e12-20020aa7824c0000b029021d7b2d174amr1891729pfn.51.1617783838285; Wed, 07 Apr 2021 01:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617783838; cv=none; d=google.com; s=arc-20160816; b=On5ovvVyulZVZ45NUm4Bnfigz2XyAmxM4tzruML8Gdu5y7wCq0+f0bM1UUVHG6gGSw 7v5r1amsy/SGYwj+D+0t5RvnaJbsH1+CxVlGzsZZem6dZ44SreUKanq1D0I4kjpuqqrT QI+A5FA22+rzl9hDXXw0HNWOdp4wbGiJfcN7utJ4nNJvp+Ti0OZCv27GSAEHzHtbNJLP GpFEngwqo7bTIk0tJV/W33kK4bkJig3pu3C7xYTUMacz2a/gsHkxlr/2XPvt+RdyHncW +Guy7IRdBlwB+pCiyBof1ky/9DV7/J9zbPIdzsjdn0JIOD9lPcmT/T1AFwWxjZueSc9+ 5HhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=3Mhoue20oMxhu799KCRDAEu+fPS8HN+miGfABQ37Pu4=; b=s6LPPBVUKJb7WvY7U8MvHSxwgGFr3g27wK7rfzqSulJrqben5wQg13JyHJDG5hY1lF JmdzJkN4ZzLvxzDRmKyCB3G1dqd5mnnsVkDwHJelLYyjzV1z75b5V1FMNHrkYQ1++R9R RnjcITkOLje3HprRDzVrMh91rmVy71L8RljVIXTVpQ1ZtSKyR+bWo4FybRB8hPHRJM2/ 7gCxSWbkQ91OyUarvY8VaweL/DjL7Vh2/51wcJ5VIeHe11P5TE5y4jgwKi8M7wlHb/BN xqHsHEgj/mZIW/hlIbicyjNYcI6VuvHkAcvDtn9nUpy6bFkORv+Y3MdcxtEe0hJyYfbZ KqBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id s25si2746102pgk.175.2021.04.07.01.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 01:23:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C10F89B3C; Wed, 7 Apr 2021 08:23:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A7CF89B3C; Wed, 7 Apr 2021 08:23:54 +0000 (UTC) Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FFcn01nJPz7tPj; Wed, 7 Apr 2021 16:21:40 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 16:23:42 +0800 From: Zhen Lei To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , linux-arm-msm , dri-devel , freedreno , linux-kernel Subject: [PATCH 1/1] drm/msm/dp: remove unused local variable 'hpd' Date: Wed, 7 Apr 2021 16:23:15 +0800 Message-ID: <20210407082315.2703-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.202] X-CFilter-Loop: Reflected X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhen Lei Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning: drivers/gpu/drm/msm/dp/dp_display.c: In function ‘dp_display_usbpd_attention_cb’: drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’ set but not used [-Wunused-but-set-variable] Fixes: c58eb1b54fee ("drm/msm/dp: fix connect/disconnect handled at irq_hpd") Reported-by: Hulk Robot Signed-off-by: Zhen Lei Reviewed-by: Abhinav Kumar --- drivers/gpu/drm/msm/dp/dp_display.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 5a39da6e1eaf277..31bf2a40a9eb2c9 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -493,7 +493,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) int rc = 0; u32 sink_request; struct dp_display_private *dp; - struct dp_usbpd *hpd; if (!dev) { DRM_ERROR("invalid dev\n"); @@ -507,8 +506,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) return -ENODEV; } - hpd = dp->usbpd; - /* check for any test request issued by sink */ rc = dp_link_process_request(dp->link); if (!rc) {