Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzHA9-0003p2-O4 for qemu-devel@nongnu.org; Tue, 06 Apr 2010 18:22:25 -0400 Received: from [140.186.70.92] (port=39634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzHA7-0003nx-C1 for qemu-devel@nongnu.org; Tue, 06 Apr 2010 18:22:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzHA6-0005EL-5I for qemu-devel@nongnu.org; Tue, 06 Apr 2010 18:22:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35742) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzHA5-0005Dc-Ts for qemu-devel@nongnu.org; Tue, 06 Apr 2010 18:22:22 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o36MMF3X021821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Apr 2010 18:22:15 -0400 Received: from blackpad.lan.raisama.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o36MMCrZ020357 for ; Tue, 6 Apr 2010 18:22:14 -0400 From: Eduardo Habkost Date: Tue, 6 Apr 2010 19:22:06 -0300 Message-Id: <1270592528-23371-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1270592528-23371-1-git-send-email-ehabkost@redhat.com> References: <1270592528-23371-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] net: remove NICInfo.bootable field List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- net.c | 1 - net.h | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index 3ede738..faa54b4 100644 --- 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 --- a/net.h +++ b/net.h @@ -132,7 +132,6 @@ struct NICInfo { VLANState *vlan; VLANClientState *netdev; int used; - int bootable; int nvectors; }; -- 1.7.0.3