Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1191859

[PATCH 3/3] [PATCH] staging: dgnc: Fixed braces {} are not necessary for single statement blocks

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Aparna Karuthodi <kdasaparna@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] [PATCH] staging: dgnc: Fixed braces {} are not necessary for single statement blocks
Date Fri, 24 Jul 2015 16:10:02 +0200
Message-ID <pPLPI-80T-17@gated-at.bofh.it> (permalink)
References <pPKAh-62N-13@gated-at.bofh.it>
X-Original-To linux-kernel@vger.kernel.org
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XhvX3FSqwxsw2sIc1FbZCRHWGBYjgJzjTa2dZzJdTII=; b=ewLVjEvpf6tyBbrwL3+JJ1eA0Siy5tWi1DFknTJNwFvgWO6mEdUdQxMnAW5Jc23OiJ CZ0Xl1tUG2tbFEqPnReqBJ5dq1QFEno8Qlca0QlIoovS83c+XAu0g3mud4IfEXNg+Qyt v8AhJ5bYlCgYqHL8/PEs3ka1vmU0RzYRqazaSzJGAo526AQKY+aZtR4zHsibpJwwkPeB A0nsvXRBPKATEy9QNBiRlQDMGHflf6rXu2FaZq9geCLlnJPs3P54VDoE/cGuEPs8u8Dq jLQrgm7Y4dQocB9feF8oQWxHIq72SjMZwb4YjuhnP5FtqV8e9tKxkKNA6i560lycbvLW ZWJQ==
X-Received by 10.70.49.98 with SMTP id t2mr30758635pdn.113.1437746392846; Fri, 24 Jul 2015 06:59:52 -0700 (PDT)
X-Mailer git-send-email 1.7.9.5
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc Aparna Karuthodi <kdasaparna@gmail.com>
X-Original-Date Fri, 24 Jul 2015 19:30:56 +0530
X-Original-Message-ID <1437746456-6854-1-git-send-email-kdasaparna@gmail.com>
X-Original-References <1437742001-4179-1-git-send-email-kdasaparna@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1191859

Show key headers only | View raw


Removed the braces of if else statements which contain only one
statement

Signed-off-by: Aparna Karuthodi <kdasaparna@gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index f81a375..6cd0b6a 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -907,7 +907,7 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)
 	 * 3) NONE - Do nothing. Since we didn't do anything to turn off the
 	 *	other side, we don't need to do anything now.
 	 */
-	if (qleft > (RQUEUESIZE / 2)) {
+	if (qleft > (RQUEUESIZE / 2))
 		/* HWFLOW */
 		if (ch->ch_digi.digi_flags & RTSPACE || ch->ch_c_cflag & CRTSCTS) {
 			if (ch->ch_flags & CH_RECEIVER_OFF) {
@@ -921,10 +921,10 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)
 			ch->ch_bd->bd_ops->send_start_character(ch);
 		}
 		/* No FLOW */
-		else {
+		else 
 			/* Nothing needed. */
-		}
-	}
+		
+	
 }
 
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] [PATCH] staging: lustre: llite: Fix No space after the declaration Aparna Karuthodi <kdasaparna@gmail.com> - 2015-07-24 14:50 +0200
  [PATCH 2/3] [PATCH] staging: lustre: llite: Fix space required before the open parenthesis '(' Aparna Karuthodi <kdasaparna@gmail.com> - 2015-07-24 15:50 +0200
  [PATCH 3/3] [PATCH] staging: dgnc: Fixed braces {} are not necessary for single statement blocks Aparna Karuthodi <kdasaparna@gmail.com> - 2015-07-24 16:10 +0200

csiph-web