linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero
@ 2017-01-08 16:49 Alexandru Moise
  2017-01-09 19:27 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Moise @ 2017-01-08 16:49 UTC (permalink / raw)
  To: jhs; +Cc: davem, netdev, linux-kernel

This struct member is already initialized to zero upon root_ht's
allocation via kzalloc().

Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
---
 net/sched/cls_u32.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c
index ae83c3ae..a6ec3e4b 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;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero
  2017-01-08 16:49 [PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero Alexandru Moise
@ 2017-01-09 19:27 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-09 19:27 UTC (permalink / raw)
  To: 00moses.alexander00; +Cc: jhs, netdev, linux-kernel

From: Alexandru Moise <00moses.alexander00@gmail.com>
Date: Sun, 8 Jan 2017 18:49:46 +0200

> This struct member is already initialized to zero upon root_ht's
> allocation via kzalloc().
> 
> Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-09 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-08 16:49 [PATCH] cls_u32: don't bother explicitly initializing ->divisor to zero Alexandru Moise
2017-01-09 19:27 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).