udf: Remove wrong assignment in udf_symlink
authorJan Kara <jack@suse.cz>
Thu, 16 Jul 2009 15:36:54 +0000 (17:36 +0200)
committerJan Kara <jack@suse.cz>
Mon, 14 Sep 2009 17:13:00 +0000 (19:13 +0200)
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>
fs/udf/namei.c

index 6a29fa34c478490cc45732af39072e78fee180e0..21dad8c608f955bfac8933e7fea665f0e67a8491 100644 (file)
@@ -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);
        }