mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	ACPI / acpi_pad: Used PTR_RET
Use PTR_RET instead of explicit checking with IS_ERR. Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									2f9b06fc95
								
							
						
					
					
						commit
						a1458187ae
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -236,7 +236,7 @@ static int create_power_saving_task(void)
 | 
				
			||||||
	ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread,
 | 
						ps_tsks[ps_tsk_num] = kthread_run(power_saving_thread,
 | 
				
			||||||
		(void *)(unsigned long)ps_tsk_num,
 | 
							(void *)(unsigned long)ps_tsk_num,
 | 
				
			||||||
		"acpi_pad/%d", ps_tsk_num);
 | 
							"acpi_pad/%d", ps_tsk_num);
 | 
				
			||||||
	rc = IS_ERR(ps_tsks[ps_tsk_num]) ? PTR_ERR(ps_tsks[ps_tsk_num]) : 0;
 | 
						rc = PTR_RET(ps_tsks[ps_tsk_num]);
 | 
				
			||||||
	if (!rc)
 | 
						if (!rc)
 | 
				
			||||||
		ps_tsk_num++;
 | 
							ps_tsk_num++;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue