aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-disk.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-12-07 11:12:06 +0100
committerErwan Velu <erwan.velu@free.fr>2009-12-07 11:12:06 +0100
commita148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa (patch)
treea7f988b4e5cc71b88692d04ab0af45e15f030a9d /com32/hdt/hdt-cli-disk.c
parente876d78e8e6eff7411f087ce799383f7e145b28c (diff)
downloadhdt-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.tar.gz
hdt-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.tar.xz
hdt-a148c8cf7d6a6eaa586c67c99b5c1982bd3c6cfa.zip
hdt: Unique hardware detection path
Impact: Hardware detection path is simplified Hardware is detected once, at boot time
Diffstat (limited to 'com32/hdt/hdt-cli-disk.c')
-rw-r--r--com32/hdt/hdt-cli-disk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index c43b7ca7..24fce676 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -111,7 +111,6 @@ void main_show_disk(int argc, char **argv, struct s_hardware *hardware)
char disk_size[11];
char mbr_name[50];
- detect_disks(hardware);
reset_more_printf();
if (!hardware->disk_info[i].cbios) {
@@ -161,7 +160,6 @@ void main_show_disks(int argc __unused, char **argv __unused,
{
bool found = false;
reset_more_printf();
- detect_disks(hardware);
int first_one = 0;
for (int drive = 0x80; drive < 0xff; drive++) {
@@ -189,7 +187,6 @@ void disks_summary(int argc __unused, char **argv __unused,
int i = -1;
bool found = false;
- detect_disks(hardware);
reset_more_printf();
for (int drive = 0x80; drive < 0xff; drive++) {