Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca356640 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c119239b
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@
#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;

	int			slot, namelen;
@@ -40,7 +41,7 @@ static efs_ino_t efs_find_entry(struct inode *inode, const char *name, int len)
		if (be16_to_cpu(dirblock->magic) != EFS_DIRBLK_MAGIC) {
			pr_err("%s(): invalid directory block\n", __func__);
			brelse(bh);
			return(0);
			return 0;
		}

		for (slot = 0; slot < dirblock->slots; slot++) {
@@ -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))) {
				inodenum = be32_to_cpu(dirslot->inode);
				brelse(bh);
				return(inodenum);
				return inodenum;
			}
		}
		brelse(bh);
	}
	return(0);
	return 0;
}

struct dentry *efs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)