]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/tifm_core.c
V4L/DVB (5012): Usbvision fix: It was using "&&" instead "&"
[linux-2.6-omap-h63xx.git] / drivers / misc / tifm_core.c
index cca5f85224695aaffd8df9717ca89554ea66ef03..d61df5c3ac367cd8e38650c1c44c19db99f3785d 100644 (file)
@@ -157,7 +157,7 @@ struct tifm_dev *tifm_alloc_device(struct tifm_adapter *fm, unsigned int id)
                dev->wq = create_singlethread_workqueue(dev->wq_name);
                if (!dev->wq) {
                        kfree(dev);
-                       return 0;
+                       return NULL;
                }
                dev->dev.parent = fm->dev;
                dev->dev.bus = &tifm_bus_type;
@@ -219,8 +219,9 @@ static int tifm_device_remove(struct device *dev)
        struct tifm_driver *drv = fm_dev->drv;
 
        if (drv) {
-               if (drv->remove) drv->remove(fm_dev);
-               fm_dev->drv = 0;
+               if (drv->remove)
+                       drv->remove(fm_dev);
+               fm_dev->drv = NULL;
        }
 
        put_device(dev);