Skip to contentSkip to conversation

drivers/video/imsttfb.c: setclkMHz: clk_p is always 0

DISCUSSION Adrian Bunk 2 participants 2 messages Jan 6, 2006 – Jan 7, 2006 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

The Coverity checker noticed that in the function setclkMHz in drivers/video/imsttfb.c, the variable clk_p is never assigned a value other than 0.

Could someone understanding this code decide whether this is a real bug or whether clk_p can be replaced by 0?

TIA
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw
Quoted 7 lines · Adrian Bunk

The Coverity checker noticed that in the function setclkMHz in drivers/video/imsttfb.c, the variable clk_p is never assigned a value other than 0.

Could someone understanding this code decide whether this is a real bug or whether clk_p can be replaced by 0?

It does look like to be an oversight. The same is present in Xorg code too.

Tony