diff options
author | le <le@FreeBSD.org> | 2004-02-14 01:13:41 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-02-14 01:13:41 +0000 |
commit | 54a86bd2b3dce59705a2117e19fe39d416e6c9f1 (patch) | |
tree | 9d842d82806c9226e0bb1e6774bf9140f5f3ab3d | |
parent | 0f7d176710413daaae89f0f5ea564cd7dfb78e43 (diff) | |
download | FreeBSD-src-54a86bd2b3dce59705a2117e19fe39d416e6c9f1.zip FreeBSD-src-54a86bd2b3dce59705a2117e19fe39d416e6c9f1.tar.gz |
Remove unused variable and related bogus checks.
Approved by: grog (mentor)
-rw-r--r-- | sbin/vinum/commands.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index 14b8f40..278975e 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -147,7 +147,6 @@ vinum_create(int argc, char *argv[], char *arg0[]) void vinum_read(int argc, char *argv[], char *arg0[]) { - int error; char buffer[BUFSIZE]; /* read config file in here */ struct _ioctl_reply *reply; int i; @@ -161,16 +160,10 @@ vinum_read(int argc, char *argv[], char *arg0[]) } } ioctl(superdev, VINUM_READCONFIG, &buffer); - if (reply->error != 0) { /* error in config */ + if (reply->error != 0) /* error in config */ fprintf(stdout, "** %s: %s\n", reply->msg, strerror(reply->error)); - if (error != 0) - perror("Can't save Vinum config"); - } else { - if (error != 0) - perror("Can't save Vinum config"); - if (no_devfs) - make_devices(); - } + else if (no_devfs) + make_devices(); checkupdates(); /* make sure we're updating */ } |