Skip to content

Commit

Permalink
[CASSINI]: Check pci_set_mwi() return value.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 25, 2007
1 parent ba78073 commit 04efb87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/cassini.c
Original file line number Diff line number Diff line change
Expand Up @@ -4919,7 +4919,10 @@ static int __devinit cas_init_one(struct pci_dev *pdev,
pci_cmd &= ~PCI_COMMAND_SERR;
pci_cmd |= PCI_COMMAND_PARITY;
pci_write_config_word(pdev, PCI_COMMAND, pci_cmd);
pci_set_mwi(pdev);
if (pci_set_mwi(pdev))
printk(KERN_WARNING PFX "Could enable MWI for %s\n",
pci_name(pdev));

/*
* On some architectures, the default cache line size set
* by pci_set_mwi reduces perforamnce. We have to increase
Expand Down

0 comments on commit 04efb87

Please sign in to comment.