V4L/DVB (4817): Fix uses of "&&" where "&" was intended
authorJean Delvare <khali@linux-fr.org>
Thu, 9 Nov 2006 20:25:28 +0000 (17:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 13 Nov 2006 10:17:28 +0000 (08:17 -0200)
Fix uses of "&&" where "&" was intended in bttv-cards.c and tveeprom.c

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt8xx/bttv-cards.c
drivers/media/video/tveeprom.c

index a84903e0d810233440ebfb63b549f8b0b51fae39..21ebe8f13815ef69f284a82b65b19cb8b3c886d6 100644 (file)
@@ -4001,7 +4001,7 @@ static void __devinit init_PXC200(struct bttv *btv)
  *      - sleep 1ms
  *      - write 0x0E
  *     read from GPIO_DATA into buf (uint_32)
- *      - if ( buf>>18 & 0x01 ) || ( buf>>19 && 0x01 != 0 )
+ *      - if ( buf>>18 & 0x01 ) || ( buf>>19 & 0x01 != 0 )
  *                error. ERROR_CPLD_Check_Failed.
  */
 /* ----------------------------------------------------------------------- */
index e6baaee038bfde5d3843eb6a7a11879adc0a6df6..6b9ef731b83aabc917bb64d6a4a5823791c7b2a2 100644 (file)
@@ -468,7 +468,7 @@ void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
                                (eeprom_data[i+6] << 8) +
                                (eeprom_data[i+7] << 16);
 
-                               if ( (eeprom_data[i + 8] && 0xf0) &&
+                               if ( (eeprom_data[i + 8] & 0xf0) &&
                                        (tvee->serial_number < 0xffffff) ) {
                                        tvee->MAC_address[0] = 0x00;
                                        tvee->MAC_address[1] = 0x0D;