diff options
author | Joseph Qi <joseph.qi@huawei.com> | 2013-09-11 17:20:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:56:52 -0400 |
commit | a72e27d3727b383be39498f8b5c9b944d30e0f9b (patch) | |
tree | 8696aefc18590e2184bd517f4c15ed937c653a61 /fs/ocfs2/dlmfs | |
parent | 6f8648e894498f769832b79399b1cfabd2973ea9 (diff) |
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@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/dlmfs')
-rw-r--r-- | fs/ocfs2/dlmfs/dlmfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 12bafb7265ce..efa2b3d339e3 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c | |||
@@ -401,11 +401,8 @@ static struct inode *dlmfs_get_root_inode(struct super_block *sb) | |||
401 | { | 401 | { |
402 | struct inode *inode = new_inode(sb); | 402 | struct inode *inode = new_inode(sb); |
403 | umode_t mode = S_IFDIR | 0755; | 403 | umode_t mode = S_IFDIR | 0755; |
404 | struct dlmfs_inode_private *ip; | ||
405 | 404 | ||
406 | if (inode) { | 405 | if (inode) { |
407 | ip = DLMFS_I(inode); | ||
408 | |||
409 | inode->i_ino = get_next_ino(); | 406 | inode->i_ino = get_next_ino(); |
410 | inode_init_owner(inode, NULL, mode); | 407 | inode_init_owner(inode, NULL, mode); |
411 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; | 408 | inode->i_mapping->backing_dev_info = &dlmfs_backing_dev_info; |