[media] media: saa7134: remove if based on uninitialized variable
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 18 Jun 2014 21:28:10 +0000 (18:28 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 15:30:41 +0000 (12:30 -0300)
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>
drivers/media/pci/saa7134/saa7134-input.c

index 887429ba299bd1ea3678df6622d8d2508c6cfb89..dc3d6516edf7a1deb00077fa19f73f0cce3aeda3 100644 (file)
@@ -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;