This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] media: saa7134: remove if based on uninitialized variable
Author:  Heinrich Schuchardt <[email protected]>
Date:    Wed Jun 18 18:28:10 2014 -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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/pci/saa7134/saa7134-input.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=40feb52fb6e4fe6fcdbfb533c5c811d56f9bd98c

diff --git a/drivers/media/pci/saa7134/saa7134-input.c 
b/drivers/media/pci/saa7134/saa7134-input.c
index 887429b..dc3d651 100644
--- a/drivers/media/pci/saa7134/saa7134-input.c
+++ b/drivers/media/pci/saa7134/saa7134-input.c
@@ -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;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to