diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-05-07 11:44:19 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-05-16 08:05:21 -0400 |
commit | 0a0a94219074d79370b1cd1b533ead63d51c3730 (patch) | |
tree | 2146718c8f6622d8c881ec99e74024eeaf6138ed /arch/s390/pci/pci_dma.c | |
parent | 3670802223e164f1089287d1c223d34d3c5dc3da (diff) |
s390: pci: Check return value of alloc_irq_desc() proper
alloc_irq_desc() returns an integer and as documented either a valid
irq number or a negative error code. Checking for NO_IRQ is definitely
not the proper error handling.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux390@de.ibm.com
Link: http://lkml.kernel.org/r/20140507154339.409085048@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/s390/pci/pci_dma.c')
0 files changed, 0 insertions, 0 deletions