* [PATCH] fs/ocfs2/dlmglue: remove unneeded variable "status" in ocfs2_downconvert_thread
@ 2018-08-08 14:36 zhong jiang
0 siblings, 0 replies; only message in thread
From: zhong jiang @ 2018-08-08 14:36 UTC (permalink / raw)
To: mark, jlbec; +Cc: linux-kernel, ocfs2-devel
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-08 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 14:36 [PATCH] fs/ocfs2/dlmglue: remove unneeded variable "status" in ocfs2_downconvert_thread zhong jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).