lkml.org 
[lkml]   [2018]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fs/ocfs2/dlmglue: remove unneeded variable "status" in ocfs2_downconvert_thread
Date
The variable "status" is not modified after initialization. So just
remove the unneeded variable.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
fs/ocfs2/dlmglue.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 040ddb6..92d5c57 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -4359,7 +4359,6 @@ static int ocfs2_downconvert_thread_should_wake(struct ocfs2_super *osb)

static int ocfs2_downconvert_thread(void *arg)
{
- int status = 0;
struct ocfs2_super *osb = arg;

/* only quit once we've been asked to stop and there is no more
@@ -4377,7 +4376,7 @@ static int ocfs2_downconvert_thread(void *arg)
}

osb->dc_task = NULL;
- return status;
+ return 0;
}

void ocfs2_wake_downconvert_thread(struct ocfs2_super *osb)
--
1.7.12.4
\
 
 \ /
  Last update: 2018-08-08 16:48    [W:0.022 / U:2.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site