mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	fs/qnx6: delete unnecessary checks before brelse()
brelse() tests whether its argument is NULL and then returns immediately. Thus remove the tests which are not needed around the shown calls. Link: https://lkml.kernel.org/r/20220819081819.96347-1-chi.minghao@zte.com.cn Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Reported-by: Zeal Robot <zealci@zte.com.cn> Cc: CGEL ZTE <cgel.zte@gmail.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Minghao Chi <chi.minghao@zte.com.cn> Cc: Muchun Song <songmuchun@bytedance.com> Cc: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									2be9880dc8
								
							
						
					
					
						commit
						cba7543e15
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -470,9 +470,7 @@ static int qnx6_fill_super(struct super_block *s, void *data, int silent)
 | 
				
			||||||
out1:
 | 
					out1:
 | 
				
			||||||
	iput(sbi->inodes);
 | 
						iput(sbi->inodes);
 | 
				
			||||||
out:
 | 
					out:
 | 
				
			||||||
	if (bh1)
 | 
					 | 
				
			||||||
	brelse(bh1);
 | 
						brelse(bh1);
 | 
				
			||||||
	if (bh2)
 | 
					 | 
				
			||||||
	brelse(bh2);
 | 
						brelse(bh2);
 | 
				
			||||||
outnobh:
 | 
					outnobh:
 | 
				
			||||||
	kfree(qs);
 | 
						kfree(qs);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue