Commit 7a23af4
RDMA/bng_re: Remove unnessary validity checks
Fix below smatch warning:
drivers/infiniband/hw/bng_re/bng_dev.c:113
bng_re_net_ring_free() warn: variable dereferenced before check 'rdev'
(see line 107)
current driver has unnessary validity checks. So, removing these
unnessary validity checks.
Fixes: 4f830cd ("RDMA/bng_re: Add infrastructure for enabling Firmware channel")
Fixes: 7450657 ("RDMA/bng_re: Register and get the resources from bnge driver")
Fixes: 04e031f ("RDMA/bng_re: Initialize the Firmware and Hardware")
Fixes: d0da769 ("RDMA/bng_re: Add Auxiliary interface")
Reported-by: Simon Horman <horms@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202601010413.sWadrQel-lkp@intel.com/
Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
Link: https://patch.msgid.link/20260218091246.1764808-2-siva.kallam@broadcom.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>1 parent 9af0fea commit 7a23af4
1 file changed
Lines changed: 4 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
124 | 121 | | |
125 | 122 | | |
126 | 123 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 124 | | |
134 | 125 | | |
135 | 126 | | |
| |||
150 | 141 | | |
151 | 142 | | |
152 | 143 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 144 | + | |
157 | 145 | | |
158 | 146 | | |
159 | 147 | | |
| |||
184 | 172 | | |
185 | 173 | | |
186 | 174 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 175 | + | |
191 | 176 | | |
192 | 177 | | |
193 | 178 | | |
| |||
208 | 193 | | |
209 | 194 | | |
210 | 195 | | |
211 | | - | |
| 196 | + | |
212 | 197 | | |
213 | 198 | | |
214 | 199 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 200 | | |
219 | 201 | | |
220 | 202 | | |
| |||
486 | 468 | | |
487 | 469 | | |
488 | 470 | | |
489 | | - | |
490 | | - | |
| 471 | + | |
491 | 472 | | |
492 | 473 | | |
493 | 474 | | |
| |||
0 commit comments