]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
s390/qdio: remove unused variable
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 5 Jul 2013 07:22:11 +0000 (09:22 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 16 Jul 2013 10:21:57 +0000 (12:21 +0200)
Fix a "set but not used" warning found via make W=1.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c

index fb1c1e0483ed30213343620da6542ba5ca6b43bb..8ed52aa4912269405158e300f1c983577b29caec 100644 (file)
@@ -1497,7 +1497,7 @@ static inline int buf_in_between(int bufnr, int start, int count)
 static int handle_inbound(struct qdio_q *q, unsigned int callflags,
                          int bufnr, int count)
 {
-       int used, diff;
+       int diff;
 
        qperf_inc(q, inbound_call);
 
@@ -1530,7 +1530,7 @@ static int handle_inbound(struct qdio_q *q, unsigned int callflags,
 
 set:
        count = set_buf_states(q, bufnr, SLSB_CU_INPUT_EMPTY, count);
-       used = atomic_add_return(count, &q->nr_buf_used) - count;
+       atomic_add(count, &q->nr_buf_used);
 
        if (need_siga_in(q))
                return qdio_siga_input(q);