Commit 9c4e936a authored by Andreas Theodosiou's avatar Andreas Theodosiou Committed by Greg Kroah-Hartman

staging : unisys: Fix brace coding style issue

This is a patch to visorchannel/visorchannel_funcs.c that fixes a couple
of brace warnings found by checkpatch.pl.
Signed-off-by: default avatarAndreas Theodosiou <andreasabu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3b2f5202
...@@ -405,9 +405,8 @@ signalremove_inner(struct visorchannel *channel, u32 queue, void *msg) ...@@ -405,9 +405,8 @@ signalremove_inner(struct visorchannel *channel, u32 queue, void *msg)
return FALSE; /* no signals to remove */ return FALSE; /* no signals to remove */
sig_hdr.tail = (sig_hdr.tail + 1) % sig_hdr.max_slots; sig_hdr.tail = (sig_hdr.tail + 1) % sig_hdr.max_slots;
if (!sig_read_data(channel, queue, &sig_hdr, sig_hdr.tail, msg)) { if (!sig_read_data(channel, queue, &sig_hdr, sig_hdr.tail, msg))
return FALSE; return FALSE;
}
sig_hdr.num_received++; sig_hdr.num_received++;
/* For each data field in SIGNAL_QUEUE_HEADER that was modified, /* For each data field in SIGNAL_QUEUE_HEADER that was modified,
...@@ -470,9 +469,8 @@ signalinsert_inner(struct visorchannel *channel, u32 queue, void *msg) ...@@ -470,9 +469,8 @@ signalinsert_inner(struct visorchannel *channel, u32 queue, void *msg)
mb(); /* required for channel synch */ mb(); /* required for channel synch */
if (!SIG_WRITE_FIELD(channel, queue, &sig_hdr, head)) if (!SIG_WRITE_FIELD(channel, queue, &sig_hdr, head))
return FALSE; return FALSE;
if (!SIG_WRITE_FIELD(channel, queue, &sig_hdr, num_sent)) { if (!SIG_WRITE_FIELD(channel, queue, &sig_hdr, num_sent))
return FALSE; return FALSE;
}
return TRUE; return TRUE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment