kill dead code

Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
Sam Leffler 2005-02-23 00:43:00 +00:00
parent db77984c5b
commit 3e55226c46

View File

@ -200,10 +200,7 @@ devclass_sysctl_handler(SYSCTL_HANDLER_ARGS)
{ {
devclass_t dc = (devclass_t)arg1; devclass_t dc = (devclass_t)arg1;
const char *value; const char *value;
char *buf;
int error;
buf = NULL;
switch (arg2) { switch (arg2) {
case DEVCLASS_SYSCTL_PARENT: case DEVCLASS_SYSCTL_PARENT:
value = dc->parent ? dc->parent->name : ""; value = dc->parent ? dc->parent->name : "";
@ -211,10 +208,7 @@ devclass_sysctl_handler(SYSCTL_HANDLER_ARGS)
default: default:
return (EINVAL); return (EINVAL);
} }
error = SYSCTL_OUT(req, value, strlen(value)); return (SYSCTL_OUT(req, value, strlen(value)));
if (buf != NULL)
free(buf, M_BUS);
return (error);
} }
static void static void