diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2012-05-08 03:08:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-08 05:17:30 -0400 |
commit | c558df4a01a9ec7b02303aba808d1e5044822add (patch) | |
tree | 9a952771bddd8255aa5ef2085d9aa0ab544eb97f /drivers/iommu | |
parent | 82b481e80d8a17720b5805393684a95184cfb6bb (diff) |
irq_remap: Fix the 'sub_handle' uninitialized warning
Fix this uninitialized variable warning:
drivers/iommu/intel_irq_remapping.c:986:12: warning: ‘sub_handle’ may be used uninitialized in this function [-Wuninitialized]
GCC is wrong, help it out.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: joro@8bytes.org
Cc: iommu@lists.linux-foundation.org
Cc: Joerg Roedel <joerg.roedel@amd.com>
Link: http://lkml.kernel.org/r/1336460934-23592-3-git-send-email-suresh.b.siddha@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index 1c0255e4ff29..6d347064b8b0 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c | |||
@@ -964,7 +964,7 @@ static void intel_compose_msi_msg(struct pci_dev *pdev, | |||
964 | { | 964 | { |
965 | struct irq_cfg *cfg; | 965 | struct irq_cfg *cfg; |
966 | struct irte irte; | 966 | struct irte irte; |
967 | u16 sub_handle; | 967 | u16 sub_handle = 0; |
968 | int ir_index; | 968 | int ir_index; |
969 | 969 | ||
970 | cfg = irq_get_chip_data(irq); | 970 | cfg = irq_get_chip_data(irq); |