Skip to content

Commit

Permalink
irq_remap: Fix the 'sub_handle' uninitialized warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed May 8, 2012
1 parent 82b481e commit c558df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/intel_irq_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c558df4

Please sign in to comment.