aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorTang Bin <[email protected]>2021-08-02 20:09:29 +0800
committerJonathan Cameron <[email protected]>2021-08-08 14:52:23 +0100
commitf27b1b2a04dda77454659e0b2572afe9620b55ec (patch)
treee79dcb7534384e4275b42f73fad5e1510e8b97d2 /include/linux/debugobjects.h
parent6a25893cb0e255ab8888d6a4f40e8d1e9d554ad0 (diff)
iio: adc: fsl-imx25-gcq: adjust irq check to match docs and simplify code
For the function of platform_get_irq(), the example in platform.c is * int irq = platform_get_irq(pdev, 0); * if (irq < 0) * return irq; the return value of zero is unnecessary to check, so make the right check and simplify code. Note that platform_get_irq() is documented as never returning 0 so this is a minor optmization rather than a fix. Co-developed-by: Zhang Shengju <[email protected]> Signed-off-by: Zhang Shengju <[email protected]> Signed-off-by: Tang Bin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions