forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit4392053
net_sched: remove useless NULL to tp->root
There is no need to NULL tp->root in ->destroy(), since tp isgoing to be freed very soon, and existing readers are stillsafe to read them.For cls_route, we always init its tp->root, so it can't be NULL,we can drop more useless code.Cc: Daniel Borkmann <daniel@iogearbox.net>Cc: John Fastabend <john.fastabend@gmail.com>Cc: Jamal Hadi Salim <jhs@mojatatu.com>Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>Signed-off-by: David S. Miller <davem@davemloft.net>1 parent763dbf6 commit4392053
3 files changed
+0
-20
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
148 | 147 |
| |
149 | 148 |
| |
150 | 149 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
144 |
| - | |
145 | 143 |
| |
146 | 144 |
| |
147 | 145 |
| |
| |||
194 | 192 |
| |
195 | 193 |
| |
196 | 194 |
| |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 | 195 |
| |
207 | 196 |
| |
208 | 197 |
| |
| |||
234 | 223 |
| |
235 | 224 |
| |
236 | 225 |
| |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 | 226 |
| |
241 | 227 |
| |
242 | 228 |
| |
| |||
305 | 291 |
| |
306 | 292 |
| |
307 | 293 |
| |
308 |
| - | |
309 | 294 |
| |
310 | 295 |
| |
311 | 296 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
156 |
| - | |
157 | 155 |
| |
158 | 156 |
| |
159 | 157 |
| |
| |||
310 | 308 |
| |
311 | 309 |
| |
312 | 310 |
| |
313 |
| - | |
314 |
| - | |
315 | 311 |
| |
316 | 312 |
| |
317 | 313 |
| |
|
0 commit comments
Comments
(0)