Skip to content

Commit

Permalink
fat: no need to reset EOF in ent_put for FAT32
Browse files Browse the repository at this point in the history
#define FAT_ENT_EOF(EOF_FAT32)

there is no need to reset value of 'new' for FAT32 as the values is
already correct

Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Amit Sahrawat <amit.sahrawat83@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Namjae Jeon authored and Linus Torvalds committed Oct 5, 2012
1 parent 441dff3 commit 126ac05
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/fat/fatent.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,6 @@ static void fat16_ent_put(struct fat_entry *fatent, int new)

static void fat32_ent_put(struct fat_entry *fatent, int new)
{
if (new == FAT_ENT_EOF)
new = EOF_FAT32;

WARN_ON(new & 0xf0000000);
new |= le32_to_cpu(*fatent->u.ent32_p) & ~0x0fffffff;
*fatent->u.ent32_p = cpu_to_le32(new);
Expand Down

0 comments on commit 126ac05

Please sign in to comment.