[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211112032102.5289-1-chi.minghao@zte.com.cn>
Date: Fri, 12 Nov 2021 03:21:02 +0000
From: cgel.zte@...il.com
To: thierry.reding@...il.com
Cc: airlied@...ux.ie, daniel@...ll.ch, jonathanh@...dia.com,
dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, chiminghao <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cm>
Subject: [PATCH] drivers:gpu: remove unneeded variable
From: chiminghao <chi.minghao@....com.cn>
Fix the following coccicheck REVIEW:
./drivers/gpu/drm/tegra/dpaux.c:282:13-16 REVIEW Unneeded variable
Reported-by: Zeal Robot <zealci@....com.cm>
Signed-off-by: chiminghao <chi.minghao@....com.cn>
---
drivers/gpu/drm/tegra/dpaux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c
index 1f96e416fa08..b65b21f26d2b 100644
--- a/drivers/gpu/drm/tegra/dpaux.c
+++ b/drivers/gpu/drm/tegra/dpaux.c
@@ -279,7 +279,6 @@ static void tegra_dpaux_hotplug(struct work_struct *work)
static irqreturn_t tegra_dpaux_irq(int irq, void *data)
{
struct tegra_dpaux *dpaux = data;
- irqreturn_t ret = IRQ_HANDLED;
u32 value;
/* clear interrupts */
@@ -296,7 +295,7 @@ static irqreturn_t tegra_dpaux_irq(int irq, void *data)
if (value & DPAUX_INTR_AUX_DONE)
complete(&dpaux->complete);
- return ret;
+ return IRQ_HANDLED;
}
enum tegra_dpaux_functions {
--
2.25.1
Powered by blists - more mailing lists