summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorAlexandru Moise <00moses.alexander00@gmail.com>2017-01-08 18:49:46 +0200
committerDavid S. Miller <davem@davemloft.net>2017-01-09 14:27:16 -0500
commit58fa118f3de45481df2ac2b8b41e8114cae2574d (patch)
tree61ccfff013f02346db8e0b1cafac7c30cf175014 /net/sched
parent17650f22cd059b3d653c03b5534e4a2a18cb02bd (diff)
downloadlinux-58fa118f3de45481df2ac2b8b41e8114cae2574d.tar.gz
linux-58fa118f3de45481df2ac2b8b41e8114cae2574d.tar.bz2
linux-58fa118f3de45481df2ac2b8b41e8114cae2574d.zip
cls_u32: don't bother explicitly initializing ->divisor to zero
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>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/cls_u32.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
index ae83c3aec308..a6ec3e4b57ab 100644
--- 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;