diff options
author | Shang XiaoJing <[email protected]> | 2022-09-22 22:14:37 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-04 08:55:22 -0300 |
commit | dc64641c8f917f20ad5cf678de3b77ebc8fb3a9a (patch) | |
tree | e55eca79f3c16b4a5d4d3a751010593be0de6b12 /drivers/usb/cdns3/cdns3-ti.c | |
parent | cdd3b15d6871e7b164e3dd82514dfcc4daa7559b (diff) |
perf top: Fix error code in cmd_top()
There are three error paths which return success:
1. Propagate the errno from evlist__create_maps() if it failed.
2. Return -EINVAL if top.sb_evlist is NULL.
3. Return -EINVAL if evlist__add_bpf_sb_event() failed.
Signed-off-by: Shang XiaoJing <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions