All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] qdisc: basic classifier - remove unnecessary initialization
@ 2013-09-27  0:42 Stephen Hemminger
  2013-09-29 11:28 ` Jamal Hadi Salim
  2013-09-30 19:48 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Hemminger @ 2013-09-27  0:42 UTC (permalink / raw)
  To: Jamal Hadi Salim, David Miller; +Cc: netdev

err is set once, then first code resets it.
  err = tcf_exts_validate(...)

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>


--- a/net/sched/cls_basic.c	2013-08-10 10:36:11.657498301 -0700
+++ b/net/sched/cls_basic.c	2013-09-05 18:05:14.718200833 -0700
@@ -137,7 +137,7 @@ static int basic_set_parms(struct net *n
 			   struct nlattr **tb,
 			   struct nlattr *est)
 {
-	int err = -EINVAL;
+	int err;
 	struct tcf_exts e;
 	struct tcf_ematch_tree t;
 

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

end of thread, other threads:[~2013-09-30 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-27  0:42 [PATCH net-next] qdisc: basic classifier - remove unnecessary initialization Stephen Hemminger
2013-09-29 11:28 ` Jamal Hadi Salim
2013-09-30 19:48 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.