Commit 441dff34 authored by Cruz Julian Bishop's avatar Cruz Julian Bishop Committed by Linus Torvalds

fs/fat: fix checkpatch issues in fatent.c

1: Stop any lines going over 80 characters
2: Remove a blank line before EXPORT_SYMBOL_GPL
Signed-off-by: default avatarCruz Julian Bishop <cruzjbishop@gmail.com>
Acked-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f08b4988
...@@ -203,15 +203,18 @@ static int fat12_ent_next(struct fat_entry *fatent) ...@@ -203,15 +203,18 @@ static int fat12_ent_next(struct fat_entry *fatent)
fatent->entry++; fatent->entry++;
if (fatent->nr_bhs == 1) { if (fatent->nr_bhs == 1) {
WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 2))); WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data +
WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))); (bhs[0]->b_size - 2)));
WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data +
(bhs[0]->b_size - 1)));
if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) {
ent12_p[0] = nextp - 1; ent12_p[0] = nextp - 1;
ent12_p[1] = nextp; ent12_p[1] = nextp;
return 1; return 1;
} }
} else { } else {
WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))); WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data +
(bhs[0]->b_size - 1)));
WARN_ON(ent12_p[1] != (u8 *)bhs[1]->b_data); WARN_ON(ent12_p[1] != (u8 *)bhs[1]->b_data);
ent12_p[0] = nextp - 1; ent12_p[0] = nextp - 1;
ent12_p[1] = nextp; ent12_p[1] = nextp;
...@@ -631,7 +634,6 @@ int fat_free_clusters(struct inode *inode, int cluster) ...@@ -631,7 +634,6 @@ int fat_free_clusters(struct inode *inode, int cluster)
return err; return err;
} }
EXPORT_SYMBOL_GPL(fat_free_clusters); EXPORT_SYMBOL_GPL(fat_free_clusters);
/* 128kb is the whole sectors for FAT12 and FAT16 */ /* 128kb is the whole sectors for FAT12 and FAT16 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment