]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hfsplus: spaces/indentation clean-up
authorAnton Salikhmetov <alexo@tuxera.com>
Thu, 16 Dec 2010 16:08:40 +0000 (18:08 +0200)
committerChristoph Hellwig <hch@tuxera.com>
Thu, 16 Dec 2010 17:08:46 +0000 (18:08 +0100)
Fix incorrect spaces and indentation reported by checkpatch.pl.

Signed-off-by: Anton Salikhmetov <alexo@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/dir.c
fs/hfsplus/inode.c
fs/hfsplus/part_tbl.c
fs/hfsplus/unicode.c

index c423942793eec716a1b0ef9cbcfe4e0eff2292a3..f611d55c9f5e73f54e27fb2044d9dbe2cdeddc5c 100644 (file)
@@ -213,7 +213,7 @@ static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir)
                        err = -EIO;
                        goto out;
                }
-       next:
+next:
                filp->f_pos++;
                if (filp->f_pos >= inode->i_size)
                        goto out;
index 8d7350e5ce0d7204e97080de5dff6fea0d0142c2..a8df651747f0eadaa8af44dffda657f2d64aea3d 100644 (file)
@@ -355,7 +355,7 @@ static const struct inode_operations hfsplus_file_inode_operations = {
 };
 
 static const struct file_operations hfsplus_file_operations = {
-       .llseek         = generic_file_llseek,
+       .llseek         = generic_file_llseek,
        .read           = do_sync_read,
        .aio_read       = generic_file_aio_read,
        .write          = do_sync_write,
index 79eea8efad8e48a6a81c41afd6f80392b00f298d..d66ad113b1cc4e265f8af88f0ac50536b9ca6743 100644 (file)
@@ -60,7 +60,7 @@ struct new_pmap {
  */
 struct old_pmap {
        __be16          pdSig;  /* Signature bytes */
-       struct  old_pmap_entry {
+       struct old_pmap_entry {
                __be32  pdStart;
                __be32  pdSize;
                __be32  pdFSID;
@@ -97,7 +97,7 @@ static int hfs_parse_new_pmap(struct super_block *sb, struct new_pmap *pm,
        int i = 0;
 
        do {
-               if (!memcmp(pm->pmPartType,"Apple_HFS", 9) &&
+               if (!memcmp(pm->pmPartType, "Apple_HFS", 9) &&
                    (sbi->part < 0 || sbi->part == i)) {
                        *part_start += be32_to_cpu(pm->pmPyPartStart);
                        *part_size = be32_to_cpu(pm->pmPartBlkCnt);
index 15703e81174e24da895ced1c79c00f2d2141f5fa..7dd90a540546c71e4e35e1f79315fff35efb8075 100644 (file)
 /* Returns folded char, or 0 if ignorable */
 static inline u16 case_fold(u16 c)
 {
-        u16 tmp;
-
-        tmp = hfsplus_case_fold_table[c >> 8];
-        if (tmp)
-                tmp = hfsplus_case_fold_table[tmp + (c & 0xff)];
-        else
-                tmp = c;
-        return tmp;
+       u16 tmp;
+
+       tmp = hfsplus_case_fold_table[c >> 8];
+       if (tmp)
+               tmp = hfsplus_case_fold_table[tmp + (c & 0xff)];
+       else
+               tmp = c;
+       return tmp;
 }
 
 /* Compare unicode strings, return values like normal strcmp */
@@ -215,7 +215,7 @@ int hfsplus_uni2asc(struct super_block *sb,
                                goto done;
                        }
                }
-       same:
+same:
                switch (c0) {
                case 0:
                        cc = 0x2400;
@@ -226,7 +226,7 @@ int hfsplus_uni2asc(struct super_block *sb,
                default:
                        cc = c0;
                }
-       done:
+done:
                res = nls->uni2char(cc, op, len);
                if (res < 0) {
                        if (res == -ENAMETOOLONG)