From c558df4a01a9ec7b02303aba808d1e5044822add Mon Sep 17 00:00:00 2001 From: Suresh Siddha Date: Tue, 8 May 2012 00:08:54 -0700 Subject: irq_remap: Fix the 'sub_handle' uninitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: joro@8bytes.org Cc: iommu@lists.linux-foundation.org Cc: Joerg Roedel Link: http://lkml.kernel.org/r/1336460934-23592-3-git-send-email-suresh.b.siddha@intel.com Signed-off-by: Ingo Molnar --- drivers/iommu/intel_irq_remapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/iommu') 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, { struct irq_cfg *cfg; struct irte irte; - u16 sub_handle; + u16 sub_handle = 0; int ir_index; cfg = irq_get_chip_data(irq); -- cgit v1.2.1