summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-10-28 14:13:24 +0200
committerChristoph Hellwig <hch@serles.lst.de>2011-11-02 12:53:42 +0100
commitdc78610228fdcf84a45ff030ca6a7f0fc4913319 (patch)
treee063306493ccfcba258d2ec48432ec60f26c8919 /arch/s390
parent2833eb2b465a274d1a2529fed76c6d2904f8022b (diff)
hypfs: remove unnecessary nlink setting
alloc_inode() initializes i_nlink to 1. Remove unnecessary re-initialization. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/hypfs/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
index 6fe874fc5f8e..7ae0d0d985a8 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;
}