diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-18 10:57:19 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-11-01 16:27:13 -0400 |
commit | eeee2b5fe1a9db15d3160da8048d9b89108753bf (patch) | |
tree | 4ca4b17fb780c02c3634e6fac518de7fb9c78c22 /fs/dlm/lowcomms.c | |
parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) |
dlm: remove unused variable in *dlm_lowcomms_get_buffer()
The variable users is initialized but never used
otherwise, so remove the unused variable.
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r-- | fs/dlm/lowcomms.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 331ea4f94efd..dd87a31bcc21 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c | |||
@@ -1385,7 +1385,6 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc) | |||
1385 | struct connection *con; | 1385 | struct connection *con; |
1386 | struct writequeue_entry *e; | 1386 | struct writequeue_entry *e; |
1387 | int offset = 0; | 1387 | int offset = 0; |
1388 | int users = 0; | ||
1389 | 1388 | ||
1390 | con = nodeid2con(nodeid, allocation); | 1389 | con = nodeid2con(nodeid, allocation); |
1391 | if (!con) | 1390 | if (!con) |
@@ -1399,7 +1398,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc) | |||
1399 | } else { | 1398 | } else { |
1400 | offset = e->end; | 1399 | offset = e->end; |
1401 | e->end += len; | 1400 | e->end += len; |
1402 | users = e->users++; | 1401 | e->users++; |
1403 | } | 1402 | } |
1404 | spin_unlock(&con->writequeue_lock); | 1403 | spin_unlock(&con->writequeue_lock); |
1405 | 1404 | ||
@@ -1414,7 +1413,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc) | |||
1414 | spin_lock(&con->writequeue_lock); | 1413 | spin_lock(&con->writequeue_lock); |
1415 | offset = e->end; | 1414 | offset = e->end; |
1416 | e->end += len; | 1415 | e->end += len; |
1417 | users = e->users++; | 1416 | e->users++; |
1418 | list_add_tail(&e->list, &con->writequeue); | 1417 | list_add_tail(&e->list, &con->writequeue); |
1419 | spin_unlock(&con->writequeue_lock); | 1418 | spin_unlock(&con->writequeue_lock); |
1420 | goto got_one; | 1419 | goto got_one; |