diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-08-27 09:07:42 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-09-01 20:41:27 +0200 |
commit | afce6996943be265fa39240b67025cfcb1bcdfb1 (patch) | |
tree | e83dd5b58a5ef96fe3062547e2da260fccfcfe81 /samples/trace_printk/trace-printk.c | |
parent | EDAC/i5100: Fix error handling order in i5100_init_one() (diff) | |
download | linux-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