From dc78610228fdcf84a45ff030ca6a7f0fc4913319 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 28 Oct 2011 14:13:24 +0200 Subject: hypfs: remove unnecessary nlink setting alloc_inode() initializes i_nlink to 1. Remove unnecessary re-initialization. Signed-off-by: Miklos Szeredi CC: Martin Schwidefsky Signed-off-by: Christoph Hellwig --- arch/s390/hypfs/inode.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/s390/hypfs') diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 6fe874fc5f8..7ae0d0d985a 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -109,8 +109,6 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; if (mode & S_IFDIR) ret->i_nlink = 2; - else - ret->i_nlink = 1; } return ret; } -- cgit v1.2.3-18-g5258