diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2024-11-26 15:10:31 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-09 13:33:33 +0100 |
| commit | cbe385d9ae4862556876b3d5035a6685550b3a6f (patch) | |
| tree | 1fd93779d4bddc1afe1b0722805de4ae02c70860 /tools | |
| parent | b4b77d9b5b0df99d4756f49ff3dfe6d7bd0c1c38 (diff) | |
| download | linux-cbe385d9ae4862556876b3d5035a6685550b3a6f.tar.gz linux-cbe385d9ae4862556876b3d5035a6685550b3a6f.tar.bz2 linux-cbe385d9ae4862556876b3d5035a6685550b3a6f.zip | |
RDMA/bnxt_re: Remove always true dattr validity check
[ Upstream commit eb867d797d294a00a092b5027d08439da68940b2 ]
res->dattr is always valid at this point as it was initialized
during device addition in bnxt_re_add_device().
This change is fixing the following smatch error:
drivers/infiniband/hw/bnxt_re/qplib_fp.c:1090 bnxt_qplib_create_qp()
error: we previously assumed 'res->dattr' could be null (see line 985)
Fixes: 07f830ae4913 ("RDMA/bnxt_re: Adds MSN table capability for Gen P7 adapters")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202411222329.YTrwonWi-lkp@intel.com/
Link: https://patch.msgid.link/be0d8836b64cba3e479fbcbca717acad04aae02e.1732626579.git.leonro@nvidia.com
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
