summaryrefslogtreecommitdiffstats
path: root/samples/trace_printk/trace-printk.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2020-08-27 09:07:42 +0200
committerBorislav Petkov <bp@suse.de>2020-09-01 20:41:27 +0200
commitafce6996943be265fa39240b67025cfcb1bcdfb1 (patch)
treee83dd5b58a5ef96fe3062547e2da260fccfcfe81 /samples/trace_printk/trace-printk.c
parentEDAC/i5100: Fix error handling order in i5100_init_one() (diff)
downloadlinux-afce6996943be265fa39240b67025cfcb1bcdfb1.tar.xz
linux-afce6996943be265fa39240b67025cfcb1bcdfb1.zip
EDAC/aspeed: Fix handling of platform_get_irq() error
platform_get_irq() returns a negative error number on error. In such a case, comparison to 0 would pass the check therefore check the return value properly, whether it is negative. [ bp: Massage commit message. ] Fixes: 9b7e6242ee4e ("EDAC, aspeed: Add an Aspeed AST2500 EDAC driver") Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Stefan Schaeckeler <schaecsn@gmx.net> Link: https://lkml.kernel.org/r/20200827070743.26628-1-krzk@kernel.org
Diffstat (limited to 'samples/trace_printk/trace-printk.c')
0 files changed, 0 insertions, 0 deletions