aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dpaux.c
diff options
context:
space:
mode:
authorchiminghao <chi.minghao@zte.com.cn>2021-11-12 03:21:02 +0000
committerThierry Reding <treding@nvidia.com>2022-02-25 14:47:51 +0100
commitcea418863e968e086cf68b052da86b0707690ebc (patch)
tree97acfc1217ca91ee178a48991902fe96d7558e74 /drivers/gpu/drm/tegra/dpaux.c
parentdrm/tegra: Fix reference leak in tegra_dsi_ganged_probe (diff)
downloadlinux-dev-cea418863e968e086cf68b052da86b0707690ebc.tar.xz
linux-dev-cea418863e968e086cf68b052da86b0707690ebc.zip
drm/tegra: dpaux: Remove unneeded variable
Fix the following coccicheck REVIEW: ./drivers/gpu/drm/tegra/dpaux.c:282:13-16 REVIEW Unneeded variable Reported-by: Zeal Robot <zealci@zte.com.cm> Signed-off-by: chiminghao <chi.minghao@zte.com.cn> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dpaux.c')
-rw-r--r--drivers/gpu/drm/tegra/dpaux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c
index d7a731d287d2..ac3a18635ab1 100644
--- a/drivers/gpu/drm/tegra/dpaux.c
+++ b/drivers/gpu/drm/tegra/dpaux.c
@@ -280,7 +280,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 */
@@ -297,7 +296,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 {