]> Pileus Git - ~andy/linux/blobdiff - fs/dlm/lowcomms.c
Merge tag 'balancenuma-v11' of git://git.kernel.org/pub/scm/linux/kernel/git/mel...
[~andy/linux] / fs / dlm / lowcomms.c
index 331ea4f94efd2b3f0479ea03d36485573081adc7..dd87a31bcc2126b568777f059030e8023279842f 100644 (file)
@@ -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)
@@ -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);
 
@@ -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;