diff options
author | Janani Ravichandran | 2016-02-09 20:02:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-02-12 04:37:15 +0100 |
commit | 90cb147f3a701443f1e7e5b104e689b08f2677e3 (patch) | |
tree | b4e21b0d04606ec18941c0bcba072ec4d297227a /drivers/staging/unisys/visorbus/visorchannel.c | |
parent | staging: unisys: remove unnecessary goto (diff) | |
download | kernel-qcow2-linux-90cb147f3a701443f1e7e5b104e689b08f2677e3.tar.gz kernel-qcow2-linux-90cb147f3a701443f1e7e5b104e689b08f2677e3.tar.xz kernel-qcow2-linux-90cb147f3a701443f1e7e5b104e689b08f2677e3.zip |
staging: unisys: Remove parentheses around right hand side of assignment
Remove parentheses on the right hand side of assignment as they are not
needed. Semantic patch used:
@@
expression a, b, c, d;
@@
(
a = (c == d)
|
a =
- (
b
- )
)
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchannel.c')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchannel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index 891b8db7c5ec..a80d72cfa203 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -461,7 +461,7 @@ signalinsert_inner(struct visorchannel *channel, u32 queue, void *msg) if (!sig_read_header(channel, queue, &sig_hdr)) return false; - sig_hdr.head = ((sig_hdr.head + 1) % sig_hdr.max_slots); + sig_hdr.head = (sig_hdr.head + 1) % sig_hdr.max_slots; if (sig_hdr.head == sig_hdr.tail) { sig_hdr.num_overflows++; visorchannel_write(channel, @@ -521,7 +521,7 @@ visorchannel_signalqueue_slots_avail(struct visorchannel *channel, u32 queue) tail = sig_hdr.tail; if (head < tail) head = head + sig_hdr.max_slots; - slots_used = (head - tail); + slots_used = head - tail; slots_avail = sig_hdr.max_signals - slots_used; return (int)slots_avail; } |