mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ext4: delete "set but not used" variables
Signed-off-by: Jon Ernst <jonernst07@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
This commit is contained in:
		
							parent
							
								
									8c9367fd9b
								
							
						
					
					
						commit
						d7092ae297
					
				
					 2 changed files with 1 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1841,7 +1841,6 @@ int ext4_try_to_evict_inline_data(handle_t *handle,
 | 
			
		|||
{
 | 
			
		||||
	int error;
 | 
			
		||||
	struct ext4_xattr_entry *entry;
 | 
			
		||||
	struct ext4_xattr_ibody_header *header;
 | 
			
		||||
	struct ext4_inode *raw_inode;
 | 
			
		||||
	struct ext4_iloc iloc;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1850,7 +1849,6 @@ int ext4_try_to_evict_inline_data(handle_t *handle,
 | 
			
		|||
		return error;
 | 
			
		||||
 | 
			
		||||
	raw_inode = ext4_raw_inode(&iloc);
 | 
			
		||||
	header = IHDR(inode, raw_inode);
 | 
			
		||||
	entry = (struct ext4_xattr_entry *)((void *)raw_inode +
 | 
			
		||||
					    EXT4_I(inode)->i_inline_off);
 | 
			
		||||
	if (EXT4_XATTR_LEN(entry->e_name_len) +
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -101,9 +101,8 @@ static long swap_inode_boot_loader(struct super_block *sb,
 | 
			
		|||
	handle_t *handle;
 | 
			
		||||
	int err;
 | 
			
		||||
	struct inode *inode_bl;
 | 
			
		||||
	struct ext4_inode_info *ei;
 | 
			
		||||
	struct ext4_inode_info *ei_bl;
 | 
			
		||||
	struct ext4_sb_info *sbi;
 | 
			
		||||
	struct ext4_sb_info *sbi = EXT4_SB(sb);
 | 
			
		||||
 | 
			
		||||
	if (inode->i_nlink != 1 || !S_ISREG(inode->i_mode)) {
 | 
			
		||||
		err = -EINVAL;
 | 
			
		||||
| 
						 | 
				
			
			@ -115,9 +114,6 @@ static long swap_inode_boot_loader(struct super_block *sb,
 | 
			
		|||
		goto swap_boot_out;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sbi = EXT4_SB(sb);
 | 
			
		||||
	ei = EXT4_I(inode);
 | 
			
		||||
 | 
			
		||||
	inode_bl = ext4_iget(sb, EXT4_BOOT_LOADER_INO);
 | 
			
		||||
	if (IS_ERR(inode_bl)) {
 | 
			
		||||
		err = PTR_ERR(inode_bl);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue