Explorar el Código

udf: Remove wrong assignment in udf_symlink

Recomputation of the pointer was wrong (it should have been just increment).
Luckily, we never use the computed value. Remove it.

Signed-off-by: Jan Kara <jack@suse.cz>
Jan Kara hace 16 años
padre
commit
7c6e3d1aae
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      fs/udf/namei.c

+ 0 - 1
fs/udf/namei.c

@@ -943,7 +943,6 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
 		pc->componentType = 1;
 		pc->lengthComponentIdent = 0;
 		pc->componentFileVersionNum = 0;
-		pc += sizeof(struct pathComponent);
 		elen += sizeof(struct pathComponent);
 	}