File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1175,7 +1175,7 @@ static int __exfat_rename(struct inode *old_parent_inode,
1175
1175
struct exfat_inode_info * new_ei = NULL ;
1176
1176
unsigned int new_entry_type = TYPE_UNUSED ;
1177
1177
int new_entry = 0 ;
1178
- struct buffer_head * old_bh , * new_bh = NULL ;
1178
+ struct buffer_head * new_bh = NULL ;
1179
1179
1180
1180
/* check the validity of pointer parameters */
1181
1181
if (new_path == NULL || strlen (new_path ) == 0 )
@@ -1191,13 +1191,6 @@ static int __exfat_rename(struct inode *old_parent_inode,
1191
1191
EXFAT_I (old_parent_inode )-> flags );
1192
1192
dentry = ei -> entry ;
1193
1193
1194
- ep = exfat_get_dentry (sb , & olddir , dentry , & old_bh );
1195
- if (!ep ) {
1196
- ret = - EIO ;
1197
- goto out ;
1198
- }
1199
- brelse (old_bh );
1200
-
1201
1194
/* check whether new dir is existing directory and empty */
1202
1195
if (new_inode ) {
1203
1196
ret = - EIO ;
You can’t perform that action at this time.
0 commit comments