Commit cb6a8fd7 authored by zhong jiang's avatar zhong jiang Committed by Linus Torvalds

ocfs2: dlmfs: remove set but not used variable 'status'

status is not used after setting its value.  It is safe to remove the
unused variable.

Link: http://lkml.kernel.org/r/1540300179-26697-1-git-send-email-zhongjiang@huawei.comSigned-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Reviewed-by: default avatarJun Piao <piaojun@huawei.com>
Acked-by: default avatarJoseph Qi <jiangqi903@gmail.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 874b1ef0
...@@ -179,7 +179,7 @@ static int dlmfs_file_open(struct inode *inode, ...@@ -179,7 +179,7 @@ static int dlmfs_file_open(struct inode *inode,
static int dlmfs_file_release(struct inode *inode, static int dlmfs_file_release(struct inode *inode,
struct file *file) struct file *file)
{ {
int level, status; int level;
struct dlmfs_inode_private *ip = DLMFS_I(inode); struct dlmfs_inode_private *ip = DLMFS_I(inode);
struct dlmfs_filp_private *fp = file->private_data; struct dlmfs_filp_private *fp = file->private_data;
...@@ -188,7 +188,6 @@ static int dlmfs_file_release(struct inode *inode, ...@@ -188,7 +188,6 @@ static int dlmfs_file_release(struct inode *inode,
mlog(0, "close called on inode %lu\n", inode->i_ino); mlog(0, "close called on inode %lu\n", inode->i_ino);
status = 0;
if (fp) { if (fp) {
level = fp->fp_lock_level; level = fp->fp_lock_level;
if (level != DLM_LOCK_IV) if (level != DLM_LOCK_IV)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment