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.g...@gmx.de>
---
 drivers/media/pci/saa7134/saa7134-input.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/media/pci/saa7134/saa7134-input.c 
b/drivers/media/pci/saa7134/saa7134-input.c
index 6f43126..1c56f2ab 100644
--- a/drivers/media/pci/saa7134/saa7134-input.c
+++ b/drivers/media/pci/saa7134/saa7134-input.c
@@ -132,10 +132,6 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, u32 
*ir_key, u32 *ir_raw)
        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;
-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to