lkml.org 
[lkml]   [2017]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] Handle return value of platform_get_irq
Date
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.

Remove unnecessary 'err' initialization for irda driver.

Arvind Yadav (3):
[PATCH 1/3] iio: trigger: Fix platform_get_irq's error checking
[PATCH 2/3] staging: irda: Handle return value of platform_get_irq
[PATCH 3/3] staging: irda: Remove unnecessary 'err' initialization.

drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 4 ++--
drivers/staging/irda/drivers/pxaficp_ir.c | 11 ++++++++++-
2 files changed, 12 insertions(+), 3 deletions(-)

--
2.7.4

\
 
 \ /
  Last update: 2017-11-30 16:46    [W:0.061 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site