summaryrefslogtreecommitdiff
path: root/protos.h
diff options
context:
space:
mode:
Diffstat (limited to 'protos.h')
0 files changed, 0 insertions, 0 deletions
215032ced14f9943c8b72b61f4ac52902002158'>diff)
sched: check negative err value to safe one level of indent
As it is more common, check err for !0. That allows to safe one level of indentation and makes the code easier to read. Also, make 'next' variable global in function as it is used twice. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--net/sched/cls_api.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c