Signed-off-by: Frederico Cadete <freder...@cadete.eu>
---
 drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c 
b/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
index 0188ef8..4d11b51 100644
--- a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
+++ b/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
@@ -416,9 +416,8 @@ signalremove_inner(struct visorchannel *channel, u32 queue, 
void *msg)
 {
        struct signal_queue_header sig_hdr;
 
-       if (!sig_read_header(channel, queue, &sig_hdr)) {
+       if (!sig_read_header(channel, queue, &sig_hdr))
                return FALSE;
-       }
        if (sig_hdr.head == sig_hdr.tail)
                return FALSE;   /* no signals to remove */
 
@@ -466,9 +465,8 @@ signalinsert_inner(struct visorchannel *channel, u32 queue, 
void *msg)
 {
        struct signal_queue_header sig_hdr;
 
-       if (!sig_read_header(channel, queue, &sig_hdr)) {
+       if (!sig_read_header(channel, queue, &sig_hdr))
                return FALSE;
-       }
 
        sig_hdr.head = ((sig_hdr.head + 1) % sig_hdr.max_slots);
        if (sig_hdr.head == sig_hdr.tail) {
-- 
2.1.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to