diff options
author | Adham Faris <afaris@nvidia.com> | 2023-01-12 11:15:00 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-01-18 00:01:38 -0800 |
commit | 6624bfeecf019de114f8100f1468d025d13b77a1 (patch) | |
tree | dbeeb798707fc6f920ed34f3c28ee7bc689afa5f /tools/perf/scripts/python/task-analyzer.py | |
parent | 5aa56105930374928d567744595fd7ac525d0688 (diff) | |
download | linux-6624bfeecf019de114f8100f1468d025d13b77a1.tar.gz linux-6624bfeecf019de114f8100f1468d025d13b77a1.tar.bz2 linux-6624bfeecf019de114f8100f1468d025d13b77a1.zip |
net/mlx5e: Remove redundant xsk pointer check in mlx5e_mpwrq_validate_xsk
This validation function is relevant only for XSK cases, hence it
assumes to be called only with xsk != NULL.
Thus checking for invalid xsk pointer is redundant and misleads static
code analyzers.
This commit removes redundant xsk pointer check.
This solves the following smatch warning:
drivers/net/ethernet/mellanox/mlx5/core/en/params.c:481
mlx5e_mpwrq_validate_xsk() error: we previously assumed 'xsk' could be
null (see line 478)
Fixes: 6470d2e7e8ed ("net/mlx5e: xsk: Use KSM for unaligned XSK")
Signed-off-by: Adham Faris <afaris@nvidia.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions