]> git.proxmox.com Git - qemu.git/commitdiff
spapr_llan: Fix warning when compiled with -dDEBUG
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 7 Apr 2011 03:02:02 +0000 (13:02 +1000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 7 Apr 2011 13:25:53 +0000 (14:25 +0100)
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>
hw/spapr_llan.c

index 1d83fd58fd618ae564e2f1b0e0a94ef902d3581c..ff3a78f729cdc5deecf0c3cd54cbe29170bd65b9 100644 (file)
@@ -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;