PCI/MSI: Simplify PCI MSI code by initializing msi_desc.nvec_used earlier
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 6 Nov 2014 14:20:32 +0000 (22:20 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 23 Nov 2014 12:01:45 +0000 (13:01 +0100)
commit63a7b17e3fe8ef6217daa7be35e373c7807275f8
tree80bd61e2aab4f7d30edb60c7752f73ee036b1eb0
parent3f3cecaeaf441757029ead8a4554296745406731
PCI/MSI: Simplify PCI MSI code by initializing msi_desc.nvec_used earlier

Simplify PCI MSI code by initializing msi_desc.nvec_used and
msi_desc.msi_attrib.multiple when creating MSI descriptors.

Also remove redundant checks in IRQ remapping drivers, PCI MSI core
already guarantees these.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/iommu/irq_remapping.c
drivers/pci/msi.c