summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2005-04-20 04:43:30 +0000
committerjkoshy <jkoshy@FreeBSD.org>2005-04-20 04:43:30 +0000
commit6f78472e114d089f8219b9798deddb38b86aac63 (patch)
tree88890bb3e8d94b14a363e12937a69b50112c3019 /sys
parent7826c585d53383e69bf719e71e50c50bbc96ed19 (diff)
downloadFreeBSD-src-6f78472e114d089f8219b9798deddb38b86aac63.zip
FreeBSD-src-6f78472e114d089f8219b9798deddb38b86aac63.tar.gz
Remove dead variable.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/hwpmc/hwpmc_mod.c5
-rw-r--r--sys/hwpmc/hwpmc_mod.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
index 1ff8ea5..13ddf0c 100644
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -303,7 +303,7 @@ MODULE_VERSION(pmc, PMC_VERSION);
static int
pmc_debugflags_parse(char *newstr, char *fence)
{
- char c, *e, *p, *q;
+ char c, *p, *q;
unsigned int tmpflags;
int level;
char tmpbuf[4]; /* 3 character keyword + '\0' */
@@ -312,7 +312,6 @@ pmc_debugflags_parse(char *newstr, char *fence)
level = 0xF; /* max verbosity */
p = newstr;
- e = newstr + strlen(p);
for (; p < fence && (c = *p);) {
@@ -331,7 +330,7 @@ pmc_debugflags_parse(char *newstr, char *fence)
else if (strncmp(tmpbuf, S, 3) == 0) \
tmpflags |= __PMCDFMIN(F)
- if (e - p > 6 && strncmp(p, "level=", 6) == 0) {
+ if (fence - p > 6 && strncmp(p, "level=", 6) == 0) {
p += 6; /* skip over keyword */
level = strtoul(p, &q, 16);
}
diff --git a/sys/hwpmc/hwpmc_mod.c b/sys/hwpmc/hwpmc_mod.c
index 1ff8ea5..13ddf0c 100644
--- a/sys/hwpmc/hwpmc_mod.c
+++ b/sys/hwpmc/hwpmc_mod.c
@@ -303,7 +303,7 @@ MODULE_VERSION(pmc, PMC_VERSION);
static int
pmc_debugflags_parse(char *newstr, char *fence)
{
- char c, *e, *p, *q;
+ char c, *p, *q;
unsigned int tmpflags;
int level;
char tmpbuf[4]; /* 3 character keyword + '\0' */
@@ -312,7 +312,6 @@ pmc_debugflags_parse(char *newstr, char *fence)
level = 0xF; /* max verbosity */
p = newstr;
- e = newstr + strlen(p);
for (; p < fence && (c = *p);) {
@@ -331,7 +330,7 @@ pmc_debugflags_parse(char *newstr, char *fence)
else if (strncmp(tmpbuf, S, 3) == 0) \
tmpflags |= __PMCDFMIN(F)
- if (e - p > 6 && strncmp(p, "level=", 6) == 0) {
+ if (fence - p > 6 && strncmp(p, "level=", 6) == 0) {
p += 6; /* skip over keyword */
level = strtoul(p, &q, 16);
}
OpenPOWER on IntegriCloud