mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	media: davinci: remove unnecessary NULL check
We verified that "vpif_obj.sd[i]" is non-NULL on the previous line so no need to check here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
		
							parent
							
								
									8919a25c21
								
							
						
					
					
						commit
						7ec0966ec4
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -1284,7 +1284,6 @@ static __init int vpif_probe(struct platform_device *pdev) | ||||||
| 			goto probe_subdev_out; | 			goto probe_subdev_out; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if (vpif_obj.sd[i]) |  | ||||||
| 		vpif_obj.sd[i]->grp_id = 1 << i; | 		vpif_obj.sd[i]->grp_id = 1 << i; | ||||||
| 	} | 	} | ||||||
| 	err = vpif_probe_complete(); | 	err = vpif_probe_complete(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Dan Carpenter
						Dan Carpenter