Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40feb52f authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent aecfa5af
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -133,10 +133,6 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol,
	if (0x40000 & ~gpio)
	if (0x40000 & ~gpio)
		return 0; /* No button press */
		return 0; /* No button press */


	/* No button press - only before first key pressed */
	if (b == 0xFF)
		return 0;

	/* poll IR chip */
	/* poll IR chip */
	/* weak up the IR chip */
	/* weak up the IR chip */
	b = 0;
	b = 0;