diff options
author | Dan Carpenter <[email protected]> | 2023-05-15 13:32:37 +0300 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-05-15 14:56:22 +0200 |
commit | 95e4b25192e9238fd2dbe85d96dd2f8fd1ce9d14 (patch) | |
tree | fb41a0a0fc3204148e5e47627916711ffd02d0b6 /tools/perf/scripts/python | |
parent | b54147fa374dbeadcb01b1762db1a793e06e37de (diff) |
platform/mellanox: mlxbf-pmc: fix sscanf() error checking
The sscanf() function never returns negatives. It returns the number of
items successfully read.
Fixes: 1a218d312e65 ("platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions