提交 20b7643d 编写于 作者: A Anton Salikhmetov 提交者: Christoph Hellwig

hfsplus: spaces/indentation clean-up

Fix incorrect spaces and indentation reported by checkpatch.pl.
Signed-off-by: NAnton Salikhmetov <alexo@tuxera.com>
Signed-off-by: NChristoph Hellwig <hch@tuxera.com>
上级 21f2296a
...@@ -213,7 +213,7 @@ static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir) ...@@ -213,7 +213,7 @@ static int hfsplus_readdir(struct file *filp, void *dirent, filldir_t filldir)
err = -EIO; err = -EIO;
goto out; goto out;
} }
next: next:
filp->f_pos++; filp->f_pos++;
if (filp->f_pos >= inode->i_size) if (filp->f_pos >= inode->i_size)
goto out; goto out;
......
...@@ -355,7 +355,7 @@ static const struct inode_operations hfsplus_file_inode_operations = { ...@@ -355,7 +355,7 @@ static const struct inode_operations hfsplus_file_inode_operations = {
}; };
static const struct file_operations hfsplus_file_operations = { static const struct file_operations hfsplus_file_operations = {
.llseek = generic_file_llseek, .llseek = generic_file_llseek,
.read = do_sync_read, .read = do_sync_read,
.aio_read = generic_file_aio_read, .aio_read = generic_file_aio_read,
.write = do_sync_write, .write = do_sync_write,
......
...@@ -60,7 +60,7 @@ struct new_pmap { ...@@ -60,7 +60,7 @@ struct new_pmap {
*/ */
struct old_pmap { struct old_pmap {
__be16 pdSig; /* Signature bytes */ __be16 pdSig; /* Signature bytes */
struct old_pmap_entry { struct old_pmap_entry {
__be32 pdStart; __be32 pdStart;
__be32 pdSize; __be32 pdSize;
__be32 pdFSID; __be32 pdFSID;
...@@ -97,7 +97,7 @@ static int hfs_parse_new_pmap(struct super_block *sb, struct new_pmap *pm, ...@@ -97,7 +97,7 @@ static int hfs_parse_new_pmap(struct super_block *sb, struct new_pmap *pm,
int i = 0; int i = 0;
do { do {
if (!memcmp(pm->pmPartType,"Apple_HFS", 9) && if (!memcmp(pm->pmPartType, "Apple_HFS", 9) &&
(sbi->part < 0 || sbi->part == i)) { (sbi->part < 0 || sbi->part == i)) {
*part_start += be32_to_cpu(pm->pmPyPartStart); *part_start += be32_to_cpu(pm->pmPyPartStart);
*part_size = be32_to_cpu(pm->pmPartBlkCnt); *part_size = be32_to_cpu(pm->pmPartBlkCnt);
......
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
/* Returns folded char, or 0 if ignorable */ /* Returns folded char, or 0 if ignorable */
static inline u16 case_fold(u16 c) static inline u16 case_fold(u16 c)
{ {
u16 tmp; u16 tmp;
tmp = hfsplus_case_fold_table[c >> 8]; tmp = hfsplus_case_fold_table[c >> 8];
if (tmp) if (tmp)
tmp = hfsplus_case_fold_table[tmp + (c & 0xff)]; tmp = hfsplus_case_fold_table[tmp + (c & 0xff)];
else else
tmp = c; tmp = c;
return tmp; return tmp;
} }
/* Compare unicode strings, return values like normal strcmp */ /* Compare unicode strings, return values like normal strcmp */
...@@ -215,7 +215,7 @@ int hfsplus_uni2asc(struct super_block *sb, ...@@ -215,7 +215,7 @@ int hfsplus_uni2asc(struct super_block *sb,
goto done; goto done;
} }
} }
same: same:
switch (c0) { switch (c0) {
case 0: case 0:
cc = 0x2400; cc = 0x2400;
...@@ -226,7 +226,7 @@ int hfsplus_uni2asc(struct super_block *sb, ...@@ -226,7 +226,7 @@ int hfsplus_uni2asc(struct super_block *sb,
default: default:
cc = c0; cc = c0;
} }
done: done:
res = nls->uni2char(cc, op, len); res = nls->uni2char(cc, op, len);
if (res < 0) { if (res < 0) {
if (res == -ENAMETOOLONG) if (res == -ENAMETOOLONG)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册