summaryrefslogtreecommitdiffstats
path: root/hw/spapr_llan.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2011-04-07 13:02:02 +1000
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-07 14:25:53 +0100
commitfa227023f044552ec48ca851411dba2f268a912c (patch)
tree031a62b6fd4a86c80e5daaea1d8a9f7ed5cbcf09 /hw/spapr_llan.c
parent3b29a1018457875a983bf10667cfe3a80c9d6dfd (diff)
downloadhqemu-fa227023f044552ec48ca851411dba2f268a912c.zip
hqemu-fa227023f044552ec48ca851411dba2f268a912c.tar.gz
spapr_llan: Fix warning when compiled with -dDEBUG
Compiling with the DEBUG macro causes leaves hw/spapr_llan.c with an unused variable, which is treated as an error in the qemu build. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/spapr_llan.c')
-rw-r--r--hw/spapr_llan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/spapr_llan.c b/hw/spapr_llan.c
index 1d83fd5..ff3a78f 100644
--- a/hw/spapr_llan.c
+++ b/hw/spapr_llan.c
@@ -274,9 +274,6 @@ static target_ulong h_register_logical_lan(CPUState *env,
VIOsPAPRDevice *sdev = spapr_vio_find_by_reg(spapr->vio_bus, reg);
VIOsPAPRVLANDevice *dev = (VIOsPAPRVLANDevice *)sdev;
vlan_bd_t filter_list_bd;
-#ifdef DEBUG
- target_ulong mac_address = args[4];
-#endif
if (!dev) {
return H_PARAMETER;
OpenPOWER on IntegriCloud