Merge branch 'keys-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells...
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / sysdev / ppc4xx_hsta_msi.c
index af3c144b92c14ffd870d64a36558414287c799b2..52a93dcae26224c96be77619acde9fcf70791947 100644 (file)
@@ -132,7 +132,7 @@ static int hsta_msi_probe(struct platform_device *pdev)
        struct pci_controller *phb;
 
        mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (IS_ERR(mem)) {
+       if (!mem) {
                dev_err(dev, "Unable to get mmio space\n");
                return -EINVAL;
        }
@@ -157,7 +157,7 @@ static int hsta_msi_probe(struct platform_device *pdev)
                goto out;
 
        ppc4xx_hsta_msi.irq_map = kmalloc(sizeof(int) * irq_count, GFP_KERNEL);
-       if (IS_ERR(ppc4xx_hsta_msi.irq_map)) {
+       if (!ppc4xx_hsta_msi.irq_map) {
                ret = -ENOMEM;
                goto out1;
        }