Skip to content

Commit eeee2b5

Browse files
Wei Yongjunteigland
authored andcommitted
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>
1 parent 8f0d816 commit eeee2b5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎fs/dlm/lowcomms.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
13851385
struct connection *con;
13861386
struct writequeue_entry *e;
13871387
int offset = 0;
1388-
int users = 0;
13891388

13901389
con = nodeid2con(nodeid, allocation);
13911390
if (!con)
@@ -1399,7 +1398,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
13991398
} else {
14001399
offset = e->end;
14011400
e->end += len;
1402-
users = e->users++;
1401+
e->users++;
14031402
}
14041403
spin_unlock(&con->writequeue_lock);
14051404

@@ -1414,7 +1413,7 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
14141413
spin_lock(&con->writequeue_lock);
14151414
offset = e->end;
14161415
e->end += len;
1417-
users = e->users++;
1416+
e->users++;
14181417
list_add_tail(&e->list, &con->writequeue);
14191418
spin_unlock(&con->writequeue_lock);
14201419
goto got_one;

0 commit comments

Comments
 (0)