# \[PATCH 0/2\] misc: Fix platform\_get\_irq's error checking

- From: Arvind Yadav \<hidden\>
- Date: 2017-11-18 05:44:42 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2017/11/5135818
- Thread: https://ratatoskr.run/linux-arm-kernel/2017/11/5135818/t.md

```text
The platform_get_irq() function returns negative if an error occurs.
zero or positive number on success. platform_get_irq() error checking
for zero is not correct.

Arvind Yadav (2):
  [PATCH 1/2] misc: aspeed-lpc-snoop: Fix platform_get_irq's error checking
  [PATCH 2/2] misc: atmel-ssc: Fix platform_get_irq's error checking

 drivers/misc/aspeed-lpc-snoop.c | 4 ++--
 drivers/misc/atmel-ssc.c        | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.7.4
```
