diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-08 17:19:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-08 18:57:18 -0400 |
commit | ca35664031e166ed57659daace5527f16d42e40e (patch) | |
tree | c161b6079e36488e20869b12598a5b337c7a18c4 /fs/efs | |
parent | c119239b16e0a45ca303cdcb082733dc4de84a45 (diff) |
fs/efs/namei.c: return is not a function
Fix checkpatch errors:
"ERROR: return is not a function, parentheses are not required"
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/efs')
-rw-r--r-- | fs/efs/namei.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/efs/namei.c b/fs/efs/namei.c index 356c044e2cd3..bbee8f063dfa 100644 --- a/fs/efs/namei.c +++ b/fs/efs/namei.c | |||
@@ -12,7 +12,8 @@ | |||
12 | #include "efs.h" | 12 | #include "efs.h" |
13 | 13 | ||
14 | 14 | ||
15 | static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) { | 15 | static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) |
16 | { | ||
16 | struct buffer_head *bh; | 17 | struct buffer_head *bh; |
17 | 18 | ||
18 | int slot, namelen; | 19 | int slot, namelen; |
@@ -40,10 +41,10 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) | |||
40 | if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { | 41 | if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { |
41 | pr_err("%s(): invalid directory block\n", __func__); | 42 | pr_err("%s(): invalid directory block\n", __func__); |
42 | brelse(bh); | 43 | brelse(bh); |
43 | return(0); | 44 | return 0; |
44 | } | 45 | } |
45 | 46 | ||
46 | for(slot = 0; slot < dirblock->slots; slot++) { | 47 | for (slot = 0; slot < dirblock->slots; slot++) { |
47 | dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); | 48 | dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); |
48 | 49 | ||
49 | namelen = dirslot->namelen; | 50 | namelen = dirslot->namelen; |
@@ -52,12 +53,12 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) | |||
52 | if ((namelen == len) && (!memcmp(name, nameptr, len))) { | 53 | if ((namelen == len) && (!memcmp(name, nameptr, len))) { |
53 | inodenum = be32_to_cpu(dirslot->inode); | 54 | inodenum = be32_to_cpu(dirslot->inode); |
54 | brelse(bh); | 55 | brelse(bh); |
55 | return(inodenum); | 56 | return inodenum; |
56 | } | 57 | } |
57 | } | 58 | } |
58 | brelse(bh); | 59 | brelse(bh); |
59 | } | 60 | } |
60 | return(0); | 61 | return 0; |
61 | } | 62 | } |
62 | 63 | ||
63 | struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) | 64 | struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) |