Remove specal case on VNIOCCLR return value.

This commit is contained in:
mycroft 1995-01-22 07:09:54 +00:00
parent 0c91149a15
commit 5b44c4f24f

View File

@ -119,14 +119,9 @@ config(dev, file, action)
*/
if (action == VN_UNCONFIG) {
rv = ioctl(fileno(f), VNIOCCLR, &vnio);
if (rv) {
if (errno == ENODEV) {
if (verbose)
printf("%s: not configured\n", dev);
rv = 0;
} else
warn("VNIOCCLR");
} else if (verbose)
if (rv)
warn("VNIOCCLR");
else if (verbose)
printf("%s: cleared\n", dev);
}
/*