On 17-02-09 08:39 AM, Jiri Pirko wrote:
From: Jiri Pirko <j...@mellanox.com>

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 <j...@mellanox.com>

Acked-by: Jamal Hadi Salim <j...@mojatatu.com>

BTW: Another nice cleanup is to separate for better
readability/maintainability DEL/GET/NEW into
their own functions. GET/DEL are very close but sometimes are
slightly different - in the action code they are already breaking.

cheers,
jamal

Reply via email to