summaryrefslogtreecommitdiffstats
path: root/lib/test_siphash.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-03-31 16:45:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-02 17:06:34 +0200
commited7027fdf4ec41ed6df6814956dc11860232a9d5 (patch)
treead4562e843fd5e2738d7b812ddd4a6ab173a6533 /lib/test_siphash.c
parentdriver core: Replace printf() specifier and drop unneeded casting (diff)
downloadlinux-ed7027fdf4ec41ed6df6814956dc11860232a9d5.tar.xz
linux-ed7027fdf4ec41ed6df6814956dc11860232a9d5.zip
driver core: platform: Make platform_get_irq_optional() optional
Currently the platform_get_irq_optional() returns an error code even if IRQ resource sumply has not been found. It prevents caller to be error code agnostic in their error handling. Now: ret = platform_get_irq_optional(...); if (ret != -ENXIO) return ret; // respect deferred probe if (ret > 0) ...we get an IRQ... After proposed change: ret = platform_get_irq_optional(...); if (ret < 0) return ret; if (ret > 0) ...we get an IRQ... Reported-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210331144526.19439-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_siphash.c')
0 files changed, 0 insertions, 0 deletions