projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6273c43
)
fbdev: omapfb: remove redundant variable checksum
author
Colin Ian King
<colin.i.king@gmail.com>
Tue, 1 Nov 2022 10:29:47 +0000
(10:29 +0000)
committer
Helge Deller
<deller@gmx.de>
Wed, 14 Dec 2022 19:01:48 +0000
(20:01 +0100)
Variable checksum is being used to accumulate values however
it is never read or used afterwards. It is redundant and can
be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
index cb63bc0e92caa529169205b9c2b00e1268a87336..b33f62c5cb220b5433302c70d76717ffb6baf78f 100644
(file)
--- a/
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
+++ b/
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
@@
-129,7
+129,6
@@
static int hdmi_core_ddc_edid(struct hdmi_core_data *core, u8 *pedid, u8 ext)
{
void __iomem *base = core->base;
u8 cur_addr;
- char checksum = 0;
const int retries = 1000;
u8 seg_ptr = ext / 2;
u8 edidbase = ((ext % 2) * 0x80);
@@
-178,7
+177,6
@@
static int hdmi_core_ddc_edid(struct hdmi_core_data *core, u8 *pedid, u8 ext)
}
pedid[cur_addr] = REG_GET(base, HDMI_CORE_I2CM_DATAI, 7, 0);
- checksum += pedid[cur_addr];
}
return 0;