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


Groups > linux.kernel > #1250139

[PATCH 3/3] staging: xgifb: make XGIfb_has_VB return boolean

From Geliang Tang <geliangtang@163.com>
Newsgroups linux.kernel
Subject [PATCH 3/3] staging: xgifb: make XGIfb_has_VB return boolean
Date 2015-10-18 16:40 +0200
Message-ID <qkXhT-809-9@gated-at.bofh.it> (permalink)
References <qkXhT-809-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch makes XGIfb_has_VB return boolean, since this function
only uses either one or zero as its return value.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 drivers/staging/xgifb/XGI_main_26.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index 5a6251a4..89f5b55 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -1548,7 +1548,7 @@ static void XGIfb_detect_VB(struct xgifb_video_info *xgifb_info)
 	}
 }
 
-static int XGIfb_has_VB(struct xgifb_video_info *xgifb_info)
+static bool XGIfb_has_VB(struct xgifb_video_info *xgifb_info)
 {
 	u8 vb_chipid;
 
@@ -1562,9 +1562,9 @@ static int XGIfb_has_VB(struct xgifb_video_info *xgifb_info)
 		break;
 	default:
 		xgifb_info->hasVB = HASVB_NONE;
-		return 0;
+		return false;
 	}
-	return 1;
+	return true;
 }
 
 static void XGIfb_get_VB_type(struct xgifb_video_info *xgifb_info)
-- 
2.5.0


--
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 | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] staging: comedi: make ni_tio_has_gate2_registers return boolean Geliang Tang <geliangtang@163.com> - 2015-10-18 16:40 +0200
  [PATCH 3/3] staging: xgifb: make XGIfb_has_VB return boolean Geliang Tang <geliangtang@163.com> - 2015-10-18 16:40 +0200
  [PATCH 2/3] staging: lustre: make sptlrpc_flavor_has_bulk return boolean Geliang Tang <geliangtang@163.com> - 2015-10-18 16:40 +0200
  Re: [PATCH 1/3] staging: comedi: make ni_tio_has_gate2_registers  return boolean Ian Abbott <abbotti@mev.co.uk> - 2015-10-21 18:50 +0200

csiph-web