aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-09-05 16:16:53 +0300
committerArnd Bergmann <[email protected]>2024-09-05 16:31:59 +0000
commit2d516b8fc0f18ce9c0347a1aea6edb3d8ca1d692 (patch)
tree613d8ab7c6ff32968a0878bed17b5357d0f48e11 /tools/perf/util/scripting-engines/trace-event-python.c
parent249d30b515c91841c865042c9d0e733142cca8bb (diff)
platform: cznic: turris-omnia-mcu: Fix error check in omnia_mcu_register_trng()
The gpiod_to_irq() function never returns zero. It returns negative error codes or a positive IRQ number. Update the checking to check for negatives. Fixes: 41bb142a4028 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Marek BehĂșn <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions