Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: omapfb: remove redundant variable checksum

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>

authored by

Colin Ian King and committed by
Helge Deller
28f24e90 6273c437

-2
-2
drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
··· 129 129 { 130 130 void __iomem *base = core->base; 131 131 u8 cur_addr; 132 - char checksum = 0; 133 132 const int retries = 1000; 134 133 u8 seg_ptr = ext / 2; 135 134 u8 edidbase = ((ext % 2) * 0x80); ··· 177 178 } 178 179 179 180 pedid[cur_addr] = REG_GET(base, HDMI_CORE_I2CM_DATAI, 7, 0); 180 - checksum += pedid[cur_addr]; 181 181 } 182 182 183 183 return 0;