mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	ACPI / util: remove redundant check if element is NULL
element is &package->package.elements[i] which can never be NULL so the check to see if it is NULL is redundant and can be removed. Detected with static analysis by CoverityScan Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									b2ca5dae31
								
							
						
					
					
						commit
						bea3c377c2
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -201,10 +201,6 @@ acpi_extract_package(union acpi_object *package, | |||
| 		u8 **pointer = NULL; | ||||
| 		union acpi_object *element = &(package->package.elements[i]); | ||||
| 
 | ||||
| 		if (!element) { | ||||
| 			return AE_BAD_DATA; | ||||
| 		} | ||||
| 
 | ||||
| 		switch (element->type) { | ||||
| 
 | ||||
| 		case ACPI_TYPE_INTEGER: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Colin Ian King
						Colin Ian King