[Nouveau] [PATCH 1/2] present: Fixup return type of nouveau_present_init()

Mario Kleiner mario.kleiner.de at gmail.com
Wed Jul 29 05:39:01 PDT 2015


Make it a Bool consistently, as declared in header.

Reported-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
---
 src/nouveau_present.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nouveau_present.c b/src/nouveau_present.c
index 4de1e6e..699a58d 100644
--- a/src/nouveau_present.c
+++ b/src/nouveau_present.c
@@ -293,7 +293,7 @@ nouveau_present_fini(ScreenPtr screen)
 	}
 }
 
-int
+Bool
 nouveau_present_init(ScreenPtr screen)
 {
 	ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
@@ -304,7 +304,7 @@ nouveau_present_init(ScreenPtr screen)
 
 	present = pNv->present = calloc(1, sizeof(*present));
 	if (!present)
-		return -ENOMEM;
+		return FALSE;
 
 	present->info.version = PRESENT_SCREEN_INFO_VERSION;
 	present->info.get_crtc = nouveau_present_crtc;
-- 
1.9.1



More information about the Nouveau mailing list