]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/isp1760-if.c
USB: isp1760: Use an IS_ERR test rather than a NULL test
[linux-2.6-omap-h63xx.git] / drivers / usb / host / isp1760-if.c
index 051ef7b6bdc640f99e0e17f2079b3929e73cab6f..ad44bd60df981b45c45c35d6faec76a6688061da 100644 (file)
@@ -232,9 +232,10 @@ static int __devinit isp1761_pci_probe(struct pci_dev *dev,
        hcd = isp1760_register(pci_mem_phy0, length, dev->irq,
                IRQF_SHARED | IRQF_DISABLED, &dev->dev, dev_name(&dev->dev),
                devflags);
-       pci_set_drvdata(dev, hcd);
-       if (!hcd)
+       if (!IS_ERR(hcd)) {
+               pci_set_drvdata(dev, hcd);
                return 0;
+       }
 clean:
        status = -ENODEV;
        iounmap(iobase);