PCI/MSI: bugfix/utilize for msi_capability_init()
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Wed, 24 Dec 2008 08:27:04 +0000 (17:27 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 16 Jan 2009 20:35:25 +0000 (12:35 -0800)
commit0db29af1e767464d71b89410d61a1e5b668d0370
tree493d48656dd10cdd5e7e31f7a70de525e6bbdad2
parentb762666cc7c9f83ac5759127c29dfad438c09e48
PCI/MSI: bugfix/utilize for msi_capability_init()

This patch fix a following bug and does a cleanup.

bug:
commit 5993760f7fc75b77e4701f1e56dc84c0d6cf18d5
had a wrong change (since is_64 is boolean[0|1]):

-               pci_write_config_dword(dev,
-                       msi_mask_bits_reg(pos, is_64bit_address(control)),
-                       maskbits);
+               pci_write_config_dword(dev, entry->msi_attrib.is_64, maskbits);

utilize:
Unify separated if (entry->msi_attrib.maskbit) statements.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Acked-by: "Jike Song" <albcamus@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c