diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-06-18 15:37:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-06-18 15:37:49 +0000 |
commit | af234e5666edce76033882e7c808bc85318226f5 (patch) | |
tree | 6c8daf723302b33db0eb431f4b49803c67bc9f02 /sys/arch/i386/stand | |
parent | 7a70055846d4ee2924d8e5bf15621a9e7c340881 (diff) |
"a = 1; b = 100; c = a * b; if (c == 0) c = 100;"
is pretty silly. Nuke the if's.
ok millert@
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/libsa/diskprobe.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/diskprobe.c b/sys/arch/i386/stand/libsa/diskprobe.c index 0ec5fb17b5d..ea38de771f6 100644 --- a/sys/arch/i386/stand/libsa/diskprobe.c +++ b/sys/arch/i386/stand/libsa/diskprobe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskprobe.c,v 1.45 2017/12/18 12:53:33 fcambus Exp $ */ +/* $OpenBSD: diskprobe.c,v 1.46 2018/06/18 15:37:48 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -331,10 +331,6 @@ cdprobe(void) dip->disklabel.d_ncylinders = 1; dip->disklabel.d_secpercyl = dip->disklabel.d_ntracks * dip->disklabel.d_nsectors; - if (dip->disklabel.d_secpercyl == 0) { - dip->disklabel.d_secpercyl = 100; - /* as long as it's not 0, since readdisklabel divides by it */ - } strncpy(dip->disklabel.d_typename, "ATAPI CD-ROM", sizeof(dip->disklabel.d_typename)); |