diff options
| author | Dan Carpenter <[email protected]> | 2022-10-12 14:51:25 +0000 |
|---|---|---|
| committer | William Breathitt Gray <[email protected]> | 2022-10-17 13:51:29 +0000 |
| commit | ec0286dce78c3bb0e6a665c0baade2f2db56ce00 (patch) | |
| tree | 460ea51df32bac0780d3b019d244ca8c0e37541d /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | counter: Reduce DEFINE_COUNTER_ARRAY_POLARITY() to defining counter_array (diff) | |
| download | kernel-ec0286dce78c3bb0e6a665c0baade2f2db56ce00.tar.gz kernel-ec0286dce78c3bb0e6a665c0baade2f2db56ce00.zip | |
counter: ti-ecap-capture: fix IS_ERR() vs NULL check
The devm_counter_alloc() function returns NULL on error. It doesn't
return error pointers.
Fixes: 4e2f42aa00b6 ("counter: ti-ecap-capture: capture driver support for ECAP")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Julien Panis <[email protected]>
Acked-by: Vignesh Raghavendra <[email protected]>
Link: https://lore.kernel.org/r/Y0bUbZvfDJHBG9C6@kili/
Signed-off-by: William Breathitt Gray <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
