]> git.baikalelectronics.ru Git - kernel.git/commit
sched: check negative err value to safe one level of indent
authorJiri Pirko <jiri@mellanox.com>
Thu, 9 Feb 2017 13:39:00 +0000 (14:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 16:38:09 +0000 (11:38 -0500)
commitd8320317c61b9b52e42a14b8bb7378cb1b7b661c
tree0ab1c7617292ca22d3d4f627a7ead0ccaa5922ce
parent1b8282bea20ca6abe347a488ae3a7f862562bb2a
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>
net/sched/cls_api.c