mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
c119239b16
commit
ca35664031
1 changed files with 6 additions and 5 deletions
|
@ -12,7 +12,8 @@
|
||||||
#include "efs.h"
|
#include "efs.h"
|
||||||
|
|
||||||
|
|
||||||
static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len) {
|
static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
|
||||||
|
{
|
||||||
struct buffer_head *bh;
|
struct buffer_head *bh;
|
||||||
|
|
||||||
int slot, namelen;
|
int slot, namelen;
|
||||||
|
@ -40,10 +41,10 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
|
||||||
if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) {
|
if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) {
|
||||||
pr_err("%s(): invalid directory block\n", __func__);
|
pr_err("%s(): invalid directory block\n", __func__);
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
return(0);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(slot = 0; slot < dirblock->slots; slot++) {
|
for (slot = 0; slot < dirblock->slots; slot++) {
|
||||||
dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot));
|
dirslot = (struct efs_dentry *) (((char *) bh->b_data) + EFS_SLOTAT(dirblock, slot));
|
||||||
|
|
||||||
namelen = dirslot->namelen;
|
namelen = dirslot->namelen;
|
||||||
|
@ -52,12 +53,12 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
|
||||||
if ((namelen == len) && (!memcmp(name, nameptr, len))) {
|
if ((namelen == len) && (!memcmp(name, nameptr, len))) {
|
||||||
inodenum = be32_to_cpu(dirslot->inode);
|
inodenum = be32_to_cpu(dirslot->inode);
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
return(inodenum);
|
return inodenum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
}
|
}
|
||||||
return(0);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
|
struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
|
||||||
|
|
Loading…
Add table
Reference in a new issue