From a213155d7ad7269affc5c006a425d8bb773dc978 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 9 Jun 2008 02:47:47 -0400 Subject: [PATCH] Change unnecessary list_for_each_entry_safe to list_for_each_entry. Signed-off-by: Anders Kaseorg --- kmodsrc/helper.c | 4 ++-- kmodsrc/modcommon.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kmodsrc/helper.c b/kmodsrc/helper.c index 58f171a..2fe29e3 100644 --- a/kmodsrc/helper.c +++ b/kmodsrc/helper.c @@ -359,8 +359,8 @@ match_nop(long addr, int *o, int *other_o) void brute_search_all_mods(struct ksplice_size *s) { - struct module *m, *n; - list_for_each_entry_safe(m, n, &(THIS_MODULE->list), list) { + struct module *m; + list_for_each_entry(m, &(THIS_MODULE->list), list) { if (!starts_with(m->name, ksplice_name) && !ends_with(m->name, "_helper")) { if (brute_search(s, m->module_core, m->core_size) == 0) diff --git a/kmodsrc/modcommon.c b/kmodsrc/modcommon.c index 85d4729..6a10777 100644 --- a/kmodsrc/modcommon.c +++ b/kmodsrc/modcommon.c @@ -273,10 +273,10 @@ this_module_lookup(const char *name, struct ansglob **globptr) void other_module_lookup(const char *name_wlabel, struct ansglob **globptr) { - struct module *m, *n; + struct module *m; const char *name = dup_wolabel(name_wlabel); - list_for_each_entry_safe(m, n, &(THIS_MODULE->list), list) { + list_for_each_entry(m, &(THIS_MODULE->list), list) { if (!starts_with(m->name, ksplice_name) && !ends_with(m->name, "_helper")) { ksplice_mod_find_sym(m, name, globptr); -- 2.11.4.GIT