Commit 48d80b4
RDMA/core: Remove NULL check before dev_{put, hold}
Coccinelle reports a warning
WARNING: NULL check before dev_{put, hold} functions is not needed
The reason is the call netdev_{put, hold} of dev_{put,hold} will check NULL
There is no need to check before using dev_{put, hold}
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Link: https://lore.kernel.org/r/ZjF1Eedxwhn4JSkz@octinomon.home
Signed-off-by: Leon Romanovsky <leon@kernel.org>1 parent e4e40a8 commit 48d80b4
3 files changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2174 | 2174 | | |
2175 | 2175 | | |
2176 | 2176 | | |
2177 | | - | |
2178 | | - | |
| 2177 | + | |
2179 | 2178 | | |
2180 | 2179 | | |
2181 | 2180 | | |
| |||
2235 | 2234 | | |
2236 | 2235 | | |
2237 | 2236 | | |
2238 | | - | |
2239 | | - | |
| 2237 | + | |
2240 | 2238 | | |
2241 | 2239 | | |
2242 | 2240 | | |
| |||
2311 | 2309 | | |
2312 | 2310 | | |
2313 | 2311 | | |
2314 | | - | |
2315 | | - | |
2316 | | - | |
| 2312 | + | |
2317 | 2313 | | |
2318 | 2314 | | |
2319 | 2315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
| 604 | + | |
606 | 605 | | |
607 | 606 | | |
608 | 607 | | |
| |||
0 commit comments