Commit 58fa118f authored by Alexandru Moise's avatar Alexandru Moise Committed by David S. Miller

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: default avatarAlexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 17650f22
...@@ -334,7 +334,6 @@ static int u32_init(struct tcf_proto *tp) ...@@ -334,7 +334,6 @@ static int u32_init(struct tcf_proto *tp)
if (root_ht == NULL) if (root_ht == NULL)
return -ENOBUFS; return -ENOBUFS;
root_ht->divisor = 0;
root_ht->refcnt++; root_ht->refcnt++;
root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000; root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000;
root_ht->prio = tp->prio; root_ht->prio = tp->prio;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment