mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-19 22:42:38 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user