projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17650f2
)
cls_u32: don't bother explicitly initializing ->divisor to zero
author
Alexandru Moise
<00moses.alexander00@gmail.com>
Sun, 8 Jan 2017 16:49:46 +0000
(18:49 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 9 Jan 2017 19:27:16 +0000
(14:27 -0500)
This struct member is already initialized to zero upon root_ht's
allocation via kzalloc().
Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/cls_u32.c
b/net/sched/cls_u32.c
index ae83c3aec3082d3c4a1714c909f817835925a546..a6ec3e4b57ab1f085cb4d60366bc3b2a972cda77 100644
(file)
--- a/
net/sched/cls_u32.c
+++ b/
net/sched/cls_u32.c
@@
-334,7
+334,6
@@
static int u32_init(struct tcf_proto *tp)
if (root_ht == NULL)
return -ENOBUFS;
- root_ht->divisor = 0;
root_ht->refcnt++;
root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000;
root_ht->prio = tp->prio;