projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874b1ef
)
ocfs2: dlmfs: remove set but not used variable 'status'
author
zhong jiang
<
[email protected]
>
Fri, 28 Dec 2018 08:32:39 +0000
(
00:32
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 28 Dec 2018 20:11:45 +0000
(12:11 -0800)
status is not used after setting its value. It is safe to remove the
unused variable.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: zhong jiang <
[email protected]
>
Reviewed-by: Jun Piao <
[email protected]
>
Acked-by: Joseph Qi <
[email protected]
>
Cc: Mark Fasheh <
[email protected]
>
Cc: Joel Becker <
[email protected]
>
Cc: Junxiao Bi <
[email protected]
>
Cc: Changwei Ge <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ocfs2/dlmfs/dlmfs.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/dlmfs/dlmfs.c
b/fs/ocfs2/dlmfs/dlmfs.c
index 602c71f32740941e57d34a1aa21a3af48a4b60d4..b8fa1487cd85a40a901f8480075c2d58165548ed 100644
(file)
--- a/
fs/ocfs2/dlmfs/dlmfs.c
+++ b/
fs/ocfs2/dlmfs/dlmfs.c
@@
-179,7
+179,7
@@
bail:
static int dlmfs_file_release(struct inode *inode,
struct file *file)
{
- int level
, status
;
+ int level;
struct dlmfs_inode_private *ip = DLMFS_I(inode);
struct dlmfs_filp_private *fp = file->private_data;
@@
-188,7
+188,6
@@
static int dlmfs_file_release(struct inode *inode,
mlog(0, "close called on inode %lu\n", inode->i_ino);
- status = 0;
if (fp) {
level = fp->fp_lock_level;
if (level != DLM_LOCK_IV)