From: Pavel Emelyanov Date: Tue, 18 Sep 2007 20:20:41 +0000 (-0700) Subject: [NETNS]: Cleanup list walking in setup_net and cleanup_net X-Git-Tag: v2.6.24-rc1~1454^2~457 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768f3591e2b1cc309fd6f10d6579b216026d7817;p=pandora-kernel.git [NETNS]: Cleanup list walking in setup_net and cleanup_net I proposed introducing a list_for_each_entry_continue_reverse macro to be used in setup_net() when unrolling the failed ->init callback. Here is the macro and some more cleanup in the setup_net() itself to remove one variable from the stack :) The same thing is for the cleanup_net() - the existing list_for_each_entry_reverse() is used. Minor, but the code looks nicer. Signed-off-by: Pavel Emelyanov Acked-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed