akpm at linux-foundation.org
2013-Aug-27 21:05 UTC
[Ocfs2-devel] [patch 22/22] ocfs2: remove unused variable ip in dlmfs_get_root_inode()
From: Joseph Qi <joseph.qi at huawei.com> Subject: ocfs2: remove unused variable ip in dlmfs_get_root_inode() Variable ip in dlmfs_get_root_inode() is defined but not used. So clean it up. Signed-off-by: Joseph Qi <joseph.qi at huawei.com> Signed-off-by: Andrew Morton <akpm at linux-foundation.org> --- fs/ocfs2/dlmfs/dlmfs.c | 3 --- 1 file changed, 3 deletions(-) diff -puN fs/ocfs2/dlmfs/dlmfs.c~ocfs2-cleanup-unused-variable-ip-in-dlmfs_get_root_inode fs/ocfs2/dlmfs/dlmfs.c --- a/fs/ocfs2/dlmfs/dlmfs.c~ocfs2-cleanup-unused-variable-ip-in-dlmfs_get_root_inode +++ a/fs/ocfs2/dlmfs/dlmfs.c @@ -401,11 +401,8 @@ static struct inode *dlmfs_get_root_inod { struct inode *inode = new_inode(sb); umode_t mode = S_IFDIR | 0755; - struct dlmfs_inode_private *ip; if (inode) { - ip = DLMFS_I(inode); - inode->i_ino = get_next_ino(); inode_init_owner(inode, NULL, mode); inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; _
Jeff Liu
2013-Aug-29 09:54 UTC
[Ocfs2-devel] [patch 22/22] ocfs2: remove unused variable ip in dlmfs_get_root_inode()
On 08/28/2013 05:05 AM, akpm at linux-foundation.org wrote:> From: Joseph Qi <joseph.qi at huawei.com> > Subject: ocfs2: remove unused variable ip in dlmfs_get_root_inode() > > Variable ip in dlmfs_get_root_inode() is defined but not used. So clean > it up. > > Signed-off-by: Joseph Qi <joseph.qi at huawei.com> > Signed-off-by: Andrew Morton <akpm at linux-foundation.org>Looks good. Reviewed-by: Jie Liu <jeff.liu at oracle.com>> --- > > fs/ocfs2/dlmfs/dlmfs.c | 3 --- > 1 file changed, 3 deletions(-) > > diff -puN fs/ocfs2/dlmfs/dlmfs.c~ocfs2-cleanup-unused-variable-ip-in-dlmfs_get_root_inode fs/ocfs2/dlmfs/dlmfs.c > --- a/fs/ocfs2/dlmfs/dlmfs.c~ocfs2-cleanup-unused-variable-ip-in-dlmfs_get_root_inode > +++ a/fs/ocfs2/dlmfs/dlmfs.c > @@ -401,11 +401,8 @@ static struct inode *dlmfs_get_root_inod > { > struct inode *inode = new_inode(sb); > umode_t mode = S_IFDIR | 0755; > - struct dlmfs_inode_private *ip; > > if (inode) { > - ip = DLMFS_I(inode); > - > inode->i_ino = get_next_ino(); > inode_init_owner(inode, NULL, mode); > inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; > _ > > _______________________________________________ > Ocfs2-devel mailing list > Ocfs2-devel at oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-devel