From: Geliang Tang Date: Sun, 18 Oct 2015 14:35:32 +0000 (+0800) Subject: staging: xgifb: make XGIfb_has_VB return boolean X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fd9a2a19c241ce22f05cdc82b8eefb7f8a3e92f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: xgifb: make XGIfb_has_VB return boolean 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index 5a6251a45112..89f5b55ed546 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)