mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ocfs2: remove redundant conditional before iput
iput handles NULL pointers gracefully, so there's no need to check the pointer before the call. Link: https://lkml.kernel.org/r/20201231040535.4091761-1-yili@winhong.com Signed-off-by: Yi Li <yili@winhong.com> Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Gang He <ghe@suse.com> Cc: Jun Piao <piaojun@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									4dfe6bd949
								
							
						
					
					
						commit
						6efb59499a
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -973,8 +973,6 @@ static void ocfs2_disable_quotas(struct ocfs2_super *osb)
 | 
				
			||||||
		 * quota files */
 | 
							 * quota files */
 | 
				
			||||||
		dquot_disable(sb, type, DQUOT_USAGE_ENABLED |
 | 
							dquot_disable(sb, type, DQUOT_USAGE_ENABLED |
 | 
				
			||||||
					DQUOT_LIMITS_ENABLED);
 | 
										DQUOT_LIMITS_ENABLED);
 | 
				
			||||||
		if (!inode)
 | 
					 | 
				
			||||||
			continue;
 | 
					 | 
				
			||||||
		iput(inode);
 | 
							iput(inode);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue