cls_u32: don't bother explicitly initializing ->divisor to zero
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/sched/cls_u32.c | 1 - 1 file changed, 1 deletion(-)
net/sched/cls_u32.c +0 -1
@@ -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;
Signature · 1 line
2.1.4
From: Alexandru Moise <[email protected]>
Date: Sun, 8 Jan 2017 18:49:46 +0200
Quoted 4 lines
This struct member is already initialized to zero upon root_ht's allocation via
kzalloc().Signed-off-by Alexandru Moise <[email protected]>
Applied, thanks.