aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorWANG Cong <[email protected]>2017-04-19 14:21:22 -0700
committerDavid S. Miller <[email protected]>2017-04-21 13:58:15 -0400
commit4392053879717edb0c4756a3878c0274267e237b (patch)
tree4b6135513c77437534060999f462638e4766beb3 /lib/memory-notifier-error-inject.c
parent763dbf6328e41de7a55851baf5ee49e367552531 (diff)
net_sched: remove useless NULL to tp->root
There is no need to NULL tp->root in ->destroy(), since tp is going to be freed very soon, and existing readers are still safe 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 <[email protected]> Cc: John Fastabend <[email protected]> Cc: Jamal Hadi Salim <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions