PCI: xilinx: Fix xilinx_pcie_assign_msi() return value test
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 9 Sep 2014 12:11:50 +0000 (15:11 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2014 23:41:52 +0000 (17:41 -0600)
commitf9dd0ce67db80079484f154a27581e30c28e6938
treeab71d71042bff74c749f5079265be79c19621213
parent8961def56845593f22ce85474e428f6e4892fdd3
PCI: xilinx: Fix xilinx_pcie_assign_msi() return value test

We should be testing "hwirq" instead of "irq".  "irq" is unsigned so it's
never less than zero.  Also it's uninitialized.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Srikanth Thokala <sthokal@xilinx.com>
drivers/pci/host/pcie-xilinx.c