diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-02-03 12:04:13 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 17:32:05 +0100 |
commit | 74adb52797a7cde217a8ceeaf254a5441a42a72c (patch) | |
tree | 805ec25448f1c4bf88b35ade8c2885687a6dc66a | |
parent | [PATCH] Fix two ext[23] uninitialized warnings (diff) | |
download | linux-74adb52797a7cde217a8ceeaf254a5441a42a72c.tar.xz linux-74adb52797a7cde217a8ceeaf254a5441a42a72c.zip |
[PATCH] umem: check pci_set_dma_mask return value correctly
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/block/umem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index a3614e6a68d0..4ada1268b40d 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c @@ -882,7 +882,7 @@ static int __devinit mm_pci_probe(struct pci_dev *dev, const struct pci_device_i card->card_number, dev->bus->number, dev->devfn); if (pci_set_dma_mask(dev, 0xffffffffffffffffLL) && - !pci_set_dma_mask(dev, 0xffffffffLL)) { + pci_set_dma_mask(dev, 0xffffffffLL)) { printk(KERN_WARNING "MM%d: NO suitable DMA found\n",num_cards); return -ENOMEM; } |