Use inline numbers for masks rather than assume peace

and goodwill and basic sensible cooperation.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Dotan Barak
2009-03-04 18:38:48 +00:00
parent ea244c7da7
commit 6291409b82
+3 -3
View File
@@ -872,12 +872,12 @@ isplinux_pci_init_one(struct Scsi_Host *host)
*/
if (IS_1020(isp)) {
if (pci_set_dma_mask(pdev, DMA_BIT_MASK(24))) {
if (pci_set_dma_mask(pdev, (u64)(0xffffffull))) {
isp_prt(isp, ISP_LOGERR, "cannot set dma mask");
goto bad;
}
} else if (pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) {
if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) {
} else if (pci_set_dma_mask(pdev, (u64) (0xffffffffffffffffull))) {
if (pci_set_dma_mask(pdev, (u64) (0xffffffffull))) {
isp_prt(isp, ISP_LOGERR, "cannot set dma mask");
goto bad;
}