mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	deuglify squashfs_lookup()
d_splice_alias(NULL, dentry) is equivalent to d_add(dentry, NULL), NULL so no need for that if (inode) ... in there (or ERR_PTR(0), for that matter) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									5b4b299cc7
								
							
						
					
					
						commit
						0c1aa9a952
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -232,10 +232,7 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,
 | 
			
		|||
 | 
			
		||||
exit_lookup:
 | 
			
		||||
	kfree(dire);
 | 
			
		||||
	if (inode)
 | 
			
		||||
		return d_splice_alias(inode, dentry);
 | 
			
		||||
	d_add(dentry, inode);
 | 
			
		||||
	return ERR_PTR(0);
 | 
			
		||||
	return d_splice_alias(inode, dentry);
 | 
			
		||||
 | 
			
		||||
data_error:
 | 
			
		||||
	err = -EIO;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue