diff options
author | Pavan Kumar Linga <[email protected]> | 2024-08-14 10:59:02 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-08-16 11:23:39 -0700 |
commit | 795b1aa8f37e38cf1a6202d274960bdd9c2ac44a (patch) | |
tree | 504ffcdfc27067ef96a7e335a052d998ac51cfa9 /tools/perf/scripts/python/stackcollapse.py | |
parent | aeac0b5e32e42aaafde0a71877fb0878c9999230 (diff) |
idpf: remove redundant 'req_vec_chunks' NULL check
'req_vec_chunks' is used to store the vector info received
from the device control plane. The memory for it is allocated
in idpf_send_alloc_vectors_msg and returns an error if the memory
allocation fails.
'req_vec_chunks' cannot be NULL in the later code flow. So remove
the conditional check to extract the vector ids received from
the device control plane.
Smatch static checker warning:
drivers/net/ethernet/intel/idpf/idpf_lib.c:417 idpf_intr_req()
error: we previously assumed 'adapter->req_vec_chunks'
could be null (see line 360)
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/intel-wired-lan/[email protected]/
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Pavan Kumar Linga <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions