Skip to content

Commit

Permalink
dlm: remove unused variable in *dlm_lowcomms_get_buffer()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and David Teigland committed Nov 1, 2012
1 parent 8f0d816 commit eeee2b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
struct connection *con;
struct writequeue_entry *e;
int offset = 0;
int users = 0;

con = nodeid2con(nodeid, allocation);
if (!con)
Expand All @@ -1399,7 +1398,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
} else {
offset = e->end;
e->end += len;
users = e->users++;
e->users++;
}
spin_unlock(&con->writequeue_lock);

Expand All @@ -1414,7 +1413,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
spin_lock(&con->writequeue_lock);
offset = e->end;
e->end += len;
users = e->users++;
e->users++;
list_add_tail(&e->list, &con->writequeue);
spin_unlock(&con->writequeue_lock);
goto got_one;
Expand Down

0 comments on commit eeee2b5

Please sign in to comment.