Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
David Teigland
eeee2b5f 8f0d8163

+2 -3
+2 -3
fs/dlm/lowcomms.c
··· 1385 1385 struct connection *con; 1386 1386 struct writequeue_entry *e; 1387 1387 int offset = 0; 1388 - int users = 0; 1389 1388 1390 1389 con = nodeid2con(nodeid, allocation); 1391 1390 if (!con) ··· 1398 1399 } else { 1399 1400 offset = e->end; 1400 1401 e->end += len; 1401 - users = e->users++; 1402 + e->users++; 1402 1403 } 1403 1404 spin_unlock(&con->writequeue_lock); 1404 1405 ··· 1413 1414 spin_lock(&con->writequeue_lock); 1414 1415 offset = e->end; 1415 1416 e->end += len; 1416 - users = e->users++; 1417 + e->users++; 1417 1418 list_add_tail(&e->list, &con->writequeue); 1418 1419 spin_unlock(&con->writequeue_lock); 1419 1420 goto got_one;