mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
staging: unisys: style: remove unnecessary braces
Signed-off-by: Frederico Cadete <frederico@cadete.eu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
84b11dfd1e
commit
9a174ad446
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue