1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 04:56:18 +00:00
Lakka-LibreELEC/projects/NXP/devices/iMX8/patches/linux/0023-LF-3270-drm-cdns-hdmi-fix-coverity-Issue-11566405.patch

41 lines
1.2 KiB
Diff

From ddfa5aeb97c12fb7a67e6507ef2ae051658f112b Mon Sep 17 00:00:00 2001
From: Sandor Yu <Sandor.yu@nxp.com>
Date: Wed, 20 Jan 2021 10:49:13 +0800
Subject: [PATCH 23/49] LF-3270: drm: cdns-hdmi: fix coverity Issue: 11566405
Delete unused code to fix coverity Issue: 11566405.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
---
drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
index a89c8cba4788..2300c3d8a91d 100644
--- a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
+++ b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
@@ -37,17 +37,15 @@ static struct device_attribute HDCPTX_do_reauth = __ATTR_WO(HDCPTX_do_reauth);
static ssize_t HDCPTX_do_reauth_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
- int value, ret;
+ int ret;
struct cdns_mhdp_device *mhdp = dev_get_drvdata(dev);
ret = cdns_mhdp_hdcp_tx_reauth(mhdp, 1);
-
- sscanf(buf, "%d", &value);
-
if (ret < 0) {
dev_err(dev, "%s cdns_mhdp_hdcp_tx_reauth failed\n", __func__);
return -1;
}
+
return count;
}
--
2.29.2