]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/saa7114.c
V4L/DVB (8951): xc5000: dont pass devptr in xc5000_attach()
[linux-2.6-omap-h63xx.git] / drivers / media / video / saa7114.c
index 677df51de1a9e3136856dd417260df4e5dd1a46e..e79075533beb2bcc9ffc90825d8777e5cf0c033f 100644 (file)
@@ -56,7 +56,7 @@ MODULE_LICENSE("GPL");
 #define I2C_NAME(x) (x)->name
 
 
-static int debug = 0;
+static int debug;
 module_param(debug, int, 0);
 MODULE_PARM_DESC(debug, "Debug level (0-1)");
 
@@ -841,7 +841,7 @@ saa7114_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;