提交 c558df4a 编写于 作者: S Suresh Siddha 提交者: Ingo Molnar

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: NSuresh 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.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 82b481e8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册