diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-12-26 21:03:04 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-12-26 21:03:04 +0000 |
| commit | 9f2e984973a0c25a9f7ea5e5bb410abdaf5e4c61 (patch) | |
| tree | 5cc60b929f2294132fc87a4a139e2296ddf66d00 /release | |
| parent | 65fb557e5109d622115c864cc4a76edef394d5dc (diff) | |
Notes
Diffstat (limited to 'release')
| -rw-r--r-- | release/sysinstall/devices.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/release/sysinstall/devices.c b/release/sysinstall/devices.c index 61d0b9d1a901..73806de2f30d 100644 --- a/release/sysinstall/devices.c +++ b/release/sysinstall/devices.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: devices.c,v 1.54 1996/12/11 09:34:55 jkh Exp $ + * $Id: devices.c,v 1.55 1996/12/14 23:08:52 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -287,7 +287,7 @@ skipif: case DEVICE_TYPE_TAPE: fd = deviceTry(device_names[i].name, try); if (fd >= 0) { - if (fd) close(fd); + close(fd); deviceRegister(device_names[i].name, device_names[i].description, strdup(try), DEVICE_TYPE_TAPE, TRUE, mediaInitTape, mediaGetTape, mediaShutdownTape, NULL); msgDebug("Found a TAPE device named %s\n", device_names[i].name); @@ -297,7 +297,7 @@ skipif: case DEVICE_TYPE_FLOPPY: fd = deviceTry(device_names[i].name, try); if (fd >= 0) { - if (fd) close(fd); + close(fd); deviceRegister(device_names[i].name, device_names[i].description, strdup(try), DEVICE_TYPE_FLOPPY, TRUE, mediaInitFloppy, mediaGetFloppy, mediaShutdownFloppy, NULL); @@ -311,9 +311,7 @@ skipif: if (fd >= 0) { char *newdesc, *cp; - if (fd) - close(fd); - + close(fd); /* Serial devices get a slip and ppp device each */ cp = device_names[i].description; newdesc = safe_malloc(strlen(cp) + 40); |
