summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tidss
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2023-11-09 08:37:56 +0100
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2023-12-01 11:04:42 +0100
commitc2746e4d278be8f71ef0dbcd00fcc8ba46c678ef (patch)
treed8b50a6373a37bce19ead0387e7aacde524d93f2 /drivers/gpu/drm/tidss
parentdrm/tidss: Use PM autosuspend (diff)
downloadlinux-c2746e4d278be8f71ef0dbcd00fcc8ba46c678ef.tar.xz
linux-c2746e4d278be8f71ef0dbcd00fcc8ba46c678ef.zip
drm/tidss: Drop useless variable init
No need to initialize the ret to 0 in dispc_softreset(). Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Aradhya Bhatia <a-bhatia1@ti.com> Link: https://lore.kernel.org/r/20231109-tidss-probe-v2-3-ac91b5ea35c0@ideasonboard.com Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/tidss')
-rw-r--r--drivers/gpu/drm/tidss/tidss_dispc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
index 7af416457c57..1dfd95a54e64 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.c
+++ b/drivers/gpu/drm/tidss/tidss_dispc.c
@@ -2764,7 +2764,7 @@ static void dispc_init_errata(struct dispc_device *dispc)
static void dispc_softreset(struct dispc_device *dispc)
{
u32 val;
- int ret = 0;
+ int ret;
/* Soft reset */
REG_FLD_MOD(dispc, DSS_SYSCONFIG, 1, 1, 1);