wmbattery: Remove unnecessary brace.
Fixes "Invalid number of character ({) when these macros are defined"
errors given by cppcheck.
			
			
This commit is contained in:
		
							parent
							
								
									29e50127b6
								
							
						
					
					
						commit
						0fa341ec37
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -200,7 +200,7 @@ int simplehal_read(int battery, apm_info *info)
 | 
				
			||||||
		 * required to be available; this is good enough */
 | 
							 * required to be available; this is good enough */
 | 
				
			||||||
		if (info->battery_percentage < 1)
 | 
							if (info->battery_percentage < 1)
 | 
				
			||||||
			info->battery_status = BATTERY_STATUS_CRITICAL;
 | 
								info->battery_status = BATTERY_STATUS_CRITICAL;
 | 
				
			||||||
		else if (info->battery_percentage < 10) {
 | 
							else if (info->battery_percentage < 10)
 | 
				
			||||||
			info->battery_status = BATTERY_STATUS_LOW;
 | 
								info->battery_status = BATTERY_STATUS_LOW;
 | 
				
			||||||
	} else if (info->ac_line_status &&
 | 
						} else if (info->ac_line_status &&
 | 
				
			||||||
		 get_hal_bool(device, "battery.rechargeable.is_charging", 0) == 1) {
 | 
							 get_hal_bool(device, "battery.rechargeable.is_charging", 0) == 1) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue