drm/msm/dp: Drop unnecessary NULL checks after container_of
[linux-2.6-microblaze.git] / drivers / scsi / sun3x_esp.c
index 7de82f2..d3489ac 100644 (file)
@@ -206,7 +206,9 @@ static int esp_sun3x_probe(struct platform_device *dev)
        if (!esp->command_block)
                goto fail_unmap_regs_dma;
 
-       host->irq = platform_get_irq(dev, 0);
+       host->irq = err = platform_get_irq(dev, 0);
+       if (err < 0)
+               goto fail_unmap_command_block;
        err = request_irq(host->irq, scsi_esp_intr, IRQF_SHARED,
                          "SUN3X ESP", esp);
        if (err < 0)