X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fata%2Fpata_octeon_cf.c;h=abdd19fe990a36172c5364dee588c1045bd65a2d;hb=b9356c53ba2f593081e5aa45eb67adcce243d1c0;hp=8d9343accf3ca2bf937ab358fe1afdcd99224100;hpb=d585a021c0b10b0477d6b608c53e1feb8cde0507;p=pandora-kernel.git diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 8d9343accf3c..abdd19fe990a 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -653,7 +653,8 @@ static irqreturn_t octeon_cf_interrupt(int irq, void *dev_instance) ap = host->ports[i]; ocd = ap->dev->platform_data; - if (!ap || (ap->flags & ATA_FLAG_DISABLED)) + + if (ap->flags & ATA_FLAG_DISABLED) continue; ocd = ap->dev->platform_data;