]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/ata/libata-sff.c
sparse pointer use of zero as null
[mirror_ubuntu-bionic-kernel.git] / drivers / ata / libata-sff.c
index 026439e05afe5e9a1a75ebaf246123c7fdc6c18b..c7501058d07ded67c156e24412b399f58ce52626 100644 (file)
@@ -882,7 +882,7 @@ unsigned long ata_pci_default_filter(struct ata_device *adev, unsigned long xfer
        /* Filter out DMA modes if the device has been configured by
           the BIOS as PIO only */
 
-       if (adev->link->ap->ioaddr.bmdma_addr == 0)
+       if (adev->link->ap->ioaddr.bmdma_addr == NULL)
                xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA);
        return xfer_mask;
 }