diff options
author | Colin Ian King <[email protected]> | 2019-09-20 14:20:30 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2019-10-04 23:08:47 +0200 |
commit | 5ff8aca906f3a7a7db79fad92f2a4401107ef50d (patch) | |
tree | 7e9dea9404184281c94953c09e1225ac60544fa8 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | ae436fe81053cd6cb294214be382b545565440cc (diff) |
pinctl: ti: iodelay: fix error checking on pinctrl_count_index_with_args call
The call to pinctrl_count_index_with_args checks for a -EINVAL return
however this function calls pinctrl_get_list_and_count and this can
return -ENOENT. Rather than check for a specific error, fix this by
checking for any error return to catch the -ENOENT case.
Addresses-Coverity: ("Improper use of negative")
Fixes: 003910ebc83b ("pinctrl: Introduce TI IOdelay configuration driver")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Tony Lindgren <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions