Skip to content

Commit 20b7643

Browse files
Anton SalikhmetovChristoph Hellwig
authored andcommitted
hfsplus: spaces/indentation clean-up
Fix incorrect spaces and indentation reported by checkpatch.pl. Signed-off-by: Anton Salikhmetov <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 21f2296 commit 20b7643

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

fs/hfsplus/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir)
213213
err = -EIO;
214214
goto out;
215215
}
216-
next:
216+
next:
217217
filp->f_pos++;
218218
if (filp->f_pos >= inode->i_size)
219219
goto out;

fs/hfsplus/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static const struct inode_operations hfsplus_file_inode_operations = {
355355
};
356356

357357
static const struct file_operations hfsplus_file_operations = {
358-
.llseek = generic_file_llseek,
358+
.llseek = generic_file_llseek,
359359
.read = do_sync_read,
360360
.aio_read = generic_file_aio_read,
361361
.write = do_sync_write,

fs/hfsplus/part_tbl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct new_pmap {
6060
*/
6161
struct old_pmap {
6262
__be16 pdSig; /* Signature bytes */
63-
struct old_pmap_entry {
63+
struct old_pmap_entry {
6464
__be32 pdStart;
6565
__be32 pdSize;
6666
__be32 pdFSID;
@@ -97,7 +97,7 @@ static int hfs_parse_new_pmap(struct super_block *sb, struct new_pmap *pm,
9797
int i = 0;
9898

9999
do {
100-
if (!memcmp(pm->pmPartType,"Apple_HFS", 9) &&
100+
if (!memcmp(pm->pmPartType, "Apple_HFS", 9) &&
101101
(sbi->part < 0 || sbi->part == i)) {
102102
*part_start += be32_to_cpu(pm->pmPyPartStart);
103103
*part_size = be32_to_cpu(pm->pmPartBlkCnt);

fs/hfsplus/unicode.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
/* Returns folded char, or 0 if ignorable */
1818
static inline u16 case_fold(u16 c)
1919
{
20-
u16 tmp;
21-
22-
tmp = hfsplus_case_fold_table[c >> 8];
23-
if (tmp)
24-
tmp = hfsplus_case_fold_table[tmp + (c & 0xff)];
25-
else
26-
tmp = c;
27-
return tmp;
20+
u16 tmp;
21+
22+
tmp = hfsplus_case_fold_table[c >> 8];
23+
if (tmp)
24+
tmp = hfsplus_case_fold_table[tmp + (c & 0xff)];
25+
else
26+
tmp = c;
27+
return tmp;
2828
}
2929

3030
/* Compare unicode strings, return values like normal strcmp */
@@ -215,7 +215,7 @@ int hfsplus_uni2asc(struct super_block *sb,
215215
goto done;
216216
}
217217
}
218-
same:
218+
same:
219219
switch (c0) {
220220
case 0:
221221
cc = 0x2400;
@@ -226,7 +226,7 @@ int hfsplus_uni2asc(struct super_block *sb,
226226
default:
227227
cc = c0;
228228
}
229-
done:
229+
done:
230230
res = nls->uni2char(cc, op, len);
231231
if (res < 0) {
232232
if (res == -ENAMETOOLONG)

0 commit comments

Comments
 (0)