Skip to contentSkip to conversation

Staging: unisys: Removed unnecessary braces

PATCH In review Yeliz Taneroglu 2 participants 2 messages Feb 27, 2015 – Mar 1, 2015 Staging

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/unisys/visorchannel/visorchannel_funcs.c +4 -4
index 0188ef8..716deb4 100644
@@ -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
maintainer
#1 lore raw
Quoted 38 lines · Yeliz Taneroglu

The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/unisys/visorchannel/visorchannel_funcs.c +4 -4
index 0188ef8..716deb4 100644
@@ -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 :(