mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Georgios Emmanouil <geo.emmnl@gmail.com>
To: arnaud.patard@rtp-net.org, gregkh@linuxfoundation.org,
	waltfeasel@gmail.com, karniksayli1995@gmail.com,
	clifton.a.barnes@gmail.com, shiva@exdev.nl
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	trivial@kernel.org
Subject: [PATCH 2/2] Staging: xgifb:XGI_main_26: Added braces to the conditional statement
Date: Wed, 22 Feb 2017 20:26:01 +0200	[thread overview]
Message-ID: <1487787961-8390-1-git-send-email-geo.emmnl@gmail.com> (raw)
In-Reply-To: <1487787797-8115-1-git-send-email-geo.emmnl@gmail.com>

Coding style issue. Added brances to the conditional statement.

Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>
---
 drivers/staging/xgifb/XGI_main_26.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index c4fdc1c..1be0343 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -1500,18 +1500,19 @@ static void XGIfb_detect_VB(struct xgifb_video_info *xgifb_info)
 			xgifb_info->display2 = XGIFB_DISP_NONE;
 	}

-	if (XGIfb_tvplug != -1)
+	if (XGIfb_tvplug != -1) {
 		/* Override with option */
 		xgifb_info->TV_plug = XGIfb_tvplug;
-	else if (cr32 & SIS_VB_HIVISION) {
+	} else if (cr32 & SIS_VB_HIVISION) {
 		xgifb_info->TV_type = TVMODE_HIVISION;
 		xgifb_info->TV_plug = TVPLUG_SVIDEO;
-	} else if (cr32 & SIS_VB_SVIDEO)
+	} else if (cr32 & SIS_VB_SVIDEO) {
 		xgifb_info->TV_plug = TVPLUG_SVIDEO;
-	else if (cr32 & SIS_VB_COMPOSITE)
+	} else if (cr32 & SIS_VB_COMPOSITE) {
 		xgifb_info->TV_plug = TVPLUG_COMPOSITE;
-	else if (cr32 & SIS_VB_SCART)
+	} else if (cr32 & SIS_VB_SCART) {
 		xgifb_info->TV_plug = TVPLUG_SCART;
+	}

 	if (xgifb_info->TV_type == 0) {
		temp = xgifb_reg_get(XGICR, 0x38);
--
2.1.4

  reply	other threads:[~2017-02-22 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22 18:23 [PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement Georgios Emmanouil
2017-02-22 18:26 ` Georgios Emmanouil [this message]
2017-02-24 16:31   ` [PATCH 2/2] Staging: xgifb:XGI_main_26: Added braces to the conditional statement Greg KH
2017-02-24 16:31 ` [PATCH 1/2] Staging: xgifb:XGI_main_26: Added braces to the 'if' statement Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1487787961-8390-1-git-send-email-geo.emmnl@gmail.com \
    --to=geo.emmnl@gmail.com \
    --cc=arnaud.patard@rtp-net.org \
    --cc=clifton.a.barnes@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=karniksayli1995@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shiva@exdev.nl \
    --cc=trivial@kernel.org \
    --cc=waltfeasel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®