Skip to content

Commit

Permalink
hypfs: remove unnecessary nlink setting
Browse files Browse the repository at this point in the history
alloc_inode() initializes i_nlink to 1.  Remove unnecessary
re-initialization.

Signed-off-by: Miklos Szeredi <[email protected]>
CC: Martin Schwidefsky <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Miklos Szeredi authored and Christoph Hellwig committed Nov 2, 2011
1 parent 2833eb2 commit dc78610
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/s390/hypfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dc78610

Please sign in to comment.