]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/saa7111.c
V4L/DVB (8253): gspca: fix warnings on x86_64
[linux-2.6-omap-h63xx.git] / drivers / media / video / saa7111.c
index 7ae2d646d0008f12a8a94fd2058c6e0673dac076..96c3d4357722fb32d279a8f63aae8a7318c6b7d5 100644 (file)
@@ -55,7 +55,7 @@ MODULE_LICENSE("GPL");
 #define I2C_NAME(s) (s)->name
 
 
-static int debug = 0;
+static int debug;
 module_param(debug, int, 0644);
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
 
@@ -502,7 +502,7 @@ saa7111_detect_client (struct i2c_adapter *adapter,
                return 0;
 
        client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL);
-       if (client == 0)
+       if (!client)
                return -ENOMEM;
        client->addr = address;
        client->adapter = adapter;