patch-2.3.36 linux/drivers/char/saa7185.c

Next file: linux/drivers/char/tda9855.c
Previous file: linux/drivers/char/saa7111.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.35/linux/drivers/char/saa7185.c linux/drivers/char/saa7185.c
@@ -69,7 +69,6 @@
 static int saa7185_write(struct saa7185 *dev, unsigned char subaddr, unsigned char data)
 {
 	int ack;
-	unsigned long flags;
 
 	LOCK_I2C_BUS(dev->bus);
 
@@ -85,9 +84,8 @@
 
 static int saa7185_write_block(struct saa7185 *dev, unsigned const char *data, unsigned int len)
 {
-	int ack;
+	int ack = 0;
 	unsigned subaddr;
-	unsigned long flags;
 
 	while (len > 1) {
 		LOCK_I2C_BUS(dev->bus);

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])