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>
This commit is contained in:
Alexey Kardashevskiy 2011-04-07 13:02:02 +10:00 committed by Stefan Hajnoczi
parent 3b29a10184
commit fa227023f0

View 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;