Skip to contentSkip to conversation

tda10023.c: misplaced parentheses?

DISCUSSION Roel Kluin 1 participant 1 message Feb 23, 2010 Media (V4L/DVB)

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

In tda10023_read_signal_strength() we have:

	u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16;

-------------------------------------------------------^ The closing parenthesis appears misplaced, should this be:

	u16 gain = ((255-tda10023_readreg(state, 0x17)) + (255-ifgain))/ 16;

----------------------------------------------------------------------^ Or are the double parentheses just unnecessary?

Roel