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:
		
							parent
							
								
									3b29a10184
								
							
						
					
					
						commit
						fa227023f0
					
				| @ -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; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexey Kardashevskiy
						Alexey Kardashevskiy