Staging: unisys: Removed unnecessary braces
PATCH 1/1 Staging: unisys: Removed unnecessary braces
The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by Yeliz Taneroglu <[email protected]>
--- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/unisys/visorchannel/visorchannel_funcs.c +4 -4
@@ -416,9 +416,9 @@ 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 +466,9 @@ 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) {
Signature · 1 line
1.8.3.2
Greg KH
maintainerQuoted 38 lines · Yeliz Taneroglu
The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocksSigned-off-by Yeliz Taneroglu <[email protected]>--- drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/staging/unisys/visorchannel/visorchannel_funcs.c +4
-4@@ -416,9 +416,9 @@ 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 +466,9 @@ 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) {Signature · 1 line
1.8.3.2
This patch fails to apply to the tree :(