summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-11-16 13:32:30 +0000
committerru <ru@FreeBSD.org>2006-11-16 13:32:30 +0000
commit3e4907a052048fba6b6912ad88b4e3526bcd25dd (patch)
treede270f810845119f9b7881fb634a1f045d33fb8e /sys/boot
parentd14415a21ef74113003ac5a17c6d514d24ad8ac7 (diff)
downloadFreeBSD-src-3e4907a052048fba6b6912ad88b4e3526bcd25dd.zip
FreeBSD-src-3e4907a052048fba6b6912ad88b4e3526bcd25dd.tar.gz
Remove an unused variable.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/loader/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c
index daac4d6..3838f10 100644
--- a/sys/boot/i386/loader/main.c
+++ b/sys/boot/i386/loader/main.c
@@ -191,7 +191,7 @@ static void
extract_currdev(void)
{
struct i386_devdesc new_currdev;
- int major, biosdev = -1;
+ int biosdev = -1;
/* Assume we are booting from a BIOS disk by default */
new_currdev.d_dev = &biosdisk;
@@ -222,7 +222,6 @@ extract_currdev(void)
B_CONTROLLER(initial_bootdev) - 1;
new_currdev.d_kind.biosdisk.partition = B_PARTITION(initial_bootdev);
biosdev = initial_bootinfo->bi_bios_dev;
- major = B_TYPE(initial_bootdev);
/*
* If we are booted by an old bootstrap, we have to guess at the BIOS
OpenPOWER on IntegriCloud