OSDN Git Service

net: remove NICInfo.bootable field
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 6 Apr 2010 22:22:06 +0000 (19:22 -0300)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 10 Apr 2010 00:09:48 +0000 (02:09 +0200)
It is just set by net_set_boot_mask() and never used. The logic for rom loading
changed a lot since this field was introduced. It is not needed anymore.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
net.c
net.h

diff --git a/net.c b/net.c
index 3ede738..faa54b4 100644 (file)
--- a/net.c
+++ b/net.c
@@ -1207,7 +1207,6 @@ void net_set_boot_mask(int net_boot_mask)
 
     for (i = 0; i < nb_nics; i++) {
         if (net_boot_mask & (1 << i)) {
-            nd_table[i].bootable = 1;
             net_boot_mask &= ~(1 << i);
         }
     }
diff --git a/net.h b/net.h
index 16f19c5..991f0fa 100644 (file)
--- a/net.h
+++ b/net.h
@@ -132,7 +132,6 @@ struct NICInfo {
     VLANState *vlan;
     VLANClientState *netdev;
     int used;
-    int bootable;
     int nvectors;
 };