diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-10-28 14:13:24 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@serles.lst.de> | 2011-11-02 12:53:42 +0100 |
commit | dc78610228fdcf84a45ff030ca6a7f0fc4913319 (patch) | |
tree | e063306493ccfcba258d2ec48432ec60f26c8919 /arch/s390 | |
parent | 2833eb2b465a274d1a2529fed76c6d2904f8022b (diff) | |
download | blackbird-op-linux-dc78610228fdcf84a45ff030ca6a7f0fc4913319.tar.gz blackbird-op-linux-dc78610228fdcf84a45ff030ca6a7f0fc4913319.zip |
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.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) 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; } |