Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
ca356640 c119239b

+6 -5
+6 -5
fs/efs/namei.c
··· 12 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 17 struct buffer_head *bh; 17 18 18 19 int slot, namelen; ··· 41 40 if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) { 42 41 pr_err("%s(): invalid directory block\n", __func__); 43 42 brelse(bh); 44 - return(0); 43 + return 0; 45 44 } 46 45 47 - for(slot = 0; slot < dirblock->slots; slot++) { 46 + for (slot = 0; slot < dirblock->slots; slot++) { 48 47 dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot)); 49 48 50 49 namelen = dirslot->namelen; ··· 53 52 if ((namelen == len) && (!memcmp(name, nameptr, len))) { 54 53 inodenum = be32_to_cpu(dirslot->inode); 55 54 brelse(bh); 56 - return(inodenum); 55 + return inodenum; 57 56 } 58 57 } 59 58 brelse(bh); 60 59 } 61 - return(0); 60 + return 0; 62 61 } 63 62 64 63 struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)