forked from Minki/linux
[media] media: saa7134: remove if based on uninitialized variable
Variable b is not initialized. Only with a small chance it has random value 0xFF. Remove if statement based on this value. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
aecfa5af1e
commit
40feb52fb6
@ -133,10 +133,6 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol,
|
||||
if (0x40000 & ~gpio)
|
||||
return 0; /* No button press */
|
||||
|
||||
/* No button press - only before first key pressed */
|
||||
if (b == 0xFF)
|
||||
return 0;
|
||||
|
||||
/* poll IR chip */
|
||||
/* weak up the IR chip */
|
||||
b = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user