]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/fat: fix checkpatch issues in fatent.c
authorCruz Julian Bishop <cruzjbishop@gmail.com>
Fri, 21 Sep 2012 01:02:24 +0000 (11:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:45 +0000 (18:46 +1000)
1: Stop any lines going over 80 characters
2: Remove a blank line before EXPORT_SYMBOL_GPL

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/fatent.c

index 31f08ab62c562d1926a75183c802793642cd390c..67fd2374472038d967516f5ea420fa78e10125a4 100644 (file)
@@ -203,15 +203,18 @@ static int fat12_ent_next(struct fat_entry *fatent)
 
        fatent->entry++;
        if (fatent->nr_bhs == 1) {
-               WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 2)));
-               WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1)));
+               WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data +
+                                                       (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))) {
                        ent12_p[0] = nextp - 1;
                        ent12_p[1] = nextp;
                        return 1;
                }
        } 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);
                ent12_p[0] = nextp - 1;
                ent12_p[1] = nextp;
@@ -631,7 +634,6 @@ error:
 
        return err;
 }
-
 EXPORT_SYMBOL_GPL(fat_free_clusters);
 
 /* 128kb is the whole sectors for FAT12 and FAT16 */