diff options
| author | Pavel Emelyanov <[email protected]> | 2007-09-18 20:20:41 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2007-10-10 23:51:35 +0000 |
| commit | 768f3591e2b1cc309fd6f10d6579b216026d7817 (patch) | |
| tree | 0328abd6a6a306e648120ac2ef20332954e852e0 /scripts/mod/file2alias.c | |
| parent | [NET]: Add Tehuti network driver. (diff) | |
| download | kernel-768f3591e2b1cc309fd6f10d6579b216026d7817.tar.gz kernel-768f3591e2b1cc309fd6f10d6579b216026d7817.zip | |
[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 <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
