diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-10-28 08:13:24 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@serles.lst.de> | 2011-11-02 07:53:42 -0400 |
commit | dc78610228fdcf84a45ff030ca6a7f0fc4913319 (patch) | |
tree | e063306493ccfcba258d2ec48432ec60f26c8919 /arch/s390/hypfs | |
parent | 2833eb2b465a274d1a2529fed76c6d2904f8022b (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/hypfs')
-rw-r--r-- | arch/s390/hypfs/inode.c | 2 |
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) | |||
109 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 109 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
110 | if (mode & S_IFDIR) | 110 | if (mode & S_IFDIR) |
111 | ret->i_nlink = 2; | 111 | ret->i_nlink = 2; |
112 | else | ||
113 | ret->i_nlink = 1; | ||
114 | } | 112 | } |
115 | return ret; | 113 | return ret; |
116 | } | 114 | } |