[PATCH] fs/ocfs2/dlmglue: remove unneeded variable "status" in ocfs2_downconvert_thread

From: zhong jiang
Date: Wed Aug 08 2018 - 10:48:27 EST


The variable "status" is not modified after initialization. So just
remove the unneeded variable.

Signed-off-by: zhong jiang <zhongjiang@xxxxxxxxxx>
---
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