From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbdBVSec (ORCPT ); Wed, 22 Feb 2017 13:34:32 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34894 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754588AbdBVSeY (ORCPT ); Wed, 22 Feb 2017 13:34:24 -0500 From: Georgios Emmanouil 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 Message-Id: <1487787961-8390-1-git-send-email-geo.emmnl@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1487787797-8115-1-git-send-email-geo.emmnl@gmail.com> References: <1487787797-8115-1-git-send-email-geo.emmnl@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Coding style issue. Added brances to the conditional statement. Signed-off-by: Georgios Emmanouil --- 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