summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'release/sysinstall/attr.c')
-rw-r--r--release/sysinstall/attr.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c
index d98af51..3b00316 100644
--- a/release/sysinstall/attr.c
+++ b/release/sysinstall/attr.c
@@ -165,19 +165,12 @@ attr_match(Attribs *attr, char *name)
if (isDebug())
msgDebug("Trying to match attribute `%s'\n", name);
- for (n = 0; attr[n].name[0] && strcasecmp(attr[n].name, name) != 0; n++) {
- if (isDebug())
- msgDebug("Skipping attribute %u\n", n);
- }
-
- if (isDebug())
- msgDebug("Stopped on attribute %u\n", n);
+ for (n = 0; attr[n].name[0] && strcasecmp(attr[n].name, name); n++);
if (attr[n].name[0]) {
if (isDebug())
msgDebug("Returning `%s'\n", attr[n].value);
return(attr[n].value);
}
-
return NULL;
}
OpenPOWER on IntegriCloud