From 54a86bd2b3dce59705a2117e19fe39d416e6c9f1 Mon Sep 17 00:00:00 2001 From: le Date: Sat, 14 Feb 2004 01:13:41 +0000 Subject: Remove unused variable and related bogus checks. Approved by: grog (mentor) --- sbin/vinum/commands.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'sbin/vinum') 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 */ } -- cgit v1.1