Commit 03ec52de authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

libata: kill type mismatch compile warning

kill the following compile warning.

drivers/ata/libata-core.c:1786: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent c65ec1c2
...@@ -1787,7 +1787,8 @@ int ata_dev_configure(struct ata_device *dev) ...@@ -1787,7 +1787,8 @@ int ata_dev_configure(struct ata_device *dev)
} }
if (ata_device_blacklisted(dev) & ATA_HORKAGE_MAX_SEC_128) if (ata_device_blacklisted(dev) & ATA_HORKAGE_MAX_SEC_128)
dev->max_sectors = min(ATA_MAX_SECTORS_128, dev->max_sectors); dev->max_sectors = min_t(unsigned int, ATA_MAX_SECTORS_128,
dev->max_sectors);
/* limit ATAPI DMA to R/W commands only */ /* limit ATAPI DMA to R/W commands only */
if (ata_device_blacklisted(dev) & ATA_HORKAGE_DMA_RW_ONLY) if (ata_device_blacklisted(dev) & ATA_HORKAGE_DMA_RW_ONLY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment