aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorLi Zetao <[email protected]>2023-08-14 15:23:42 +0800
committerSaeed Mahameed <[email protected]>2023-08-21 10:55:17 -0700
commit7d7c6e8c5fe4e8cceea7f66e93cee1c951670836 (patch)
tree4e5154317180af10c821a6b6fa59e5045a9c4f01 /tools/perf/scripts/python/libxed.py
parent95c337cce0e11d06a715da73e6796ade9216637f (diff)
net/mlx5: Devcom, only use devcom after NULL check in mlx5_devcom_send_event()
There is a warning reported by kernel test robot: smatch warnings: drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c:264 mlx5_devcom_send_event() warn: variable dereferenced before IS_ERR check devcom (see line 259) The reason for the warning is that the pointer is used before check, put the assignment to comp after devcom check to silence the warning. Fixes: 88d162b47981 ("net/mlx5: Devcom, Infrastructure changes") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Li Zetao <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions