diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2018-10-08 13:27:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 11:16:23 +0300 |
commit | 2f241e333f7b5cb7e5aca9a02c1775e800db9e2e (patch) | |
tree | 9fe9aaf8b63e710e0a9c35ea05a50179952c0f7b /CREDITS | |
parent | bbeeadb7bab415bef91cdd8a86fbc9d1891cbaa1 (diff) | |
download | linux-2f241e333f7b5cb7e5aca9a02c1775e800db9e2e.tar.xz |
RDMA/bnxt_re: Avoid NULL check after accessing the pointer
[ Upstream commit eae4ad1b0c9a77ef0cbac212d58d46976eaacfc1 ]
This is reported by smatch check. rcfw->creq_bar_reg_iomem is accessed in
bnxt_qplib_rcfw_stop_irq and this variable check afterwards doesn't make
sense. Also, rcfw->creq_bar_reg_iomem will never be NULL. So Removing
this check.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 6e04b1035689 ("RDMA/bnxt_re: Fix broken RoCE driver due to recent L2 driver changes")
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions