[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220825072913.229357-1-ye.xingchen@zte.com.cn>
Date: Thu, 25 Aug 2022 07:29:13 +0000
From: cgel.zte@...il.com
To: jernej.skrabec@...il.com
Cc: andrzej.hajda@...el.com, neil.armstrong@...aro.org,
robert.foss@...aro.org, Laurent.pinchart@...asonboard.com,
jonas@...boo.se, airlied@...ux.ie, daniel@...ll.ch,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
ye xingchen <ye.xingchen@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] drm/bridge: parade-ps8622: Remove the unneeded result variable
From: ye xingchen <ye.xingchen@....com.cn>
Return the value ps8622_set() directly instead of storing it in another
redundant variable.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
---
drivers/gpu/drm/bridge/parade-ps8622.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c
index 309de802863d..c605cd725606 100644
--- a/drivers/gpu/drm/bridge/parade-ps8622.c
+++ b/drivers/gpu/drm/bridge/parade-ps8622.c
@@ -324,14 +324,12 @@ static int ps8622_send_config(struct ps8622_bridge *ps8622)
static int ps8622_backlight_update(struct backlight_device *bl)
{
struct ps8622_bridge *ps8622 = dev_get_drvdata(&bl->dev);
- int ret, brightness = backlight_get_brightness(bl);
+ int brightness = backlight_get_brightness(bl);
if (!ps8622->enabled)
return -EINVAL;
- ret = ps8622_set(ps8622->client, 0x01, 0xa7, brightness);
-
- return ret;
+ return ps8622_set(ps8622->client, 0x01, 0xa7, brightness);
}
static const struct backlight_ops ps8622_backlight_ops = {
--
2.25.1
Powered by blists - more mailing lists