[Intel-gfx] [PATCH] drm/vblank: fix boolreturn.cocci warnings
kbuild test robot
lkp at intel.com
Fri Mar 24 21:28:46 UTC 2017
drivers/gpu/drm/nouveau/nouveau_display.c:154:8-9: WARNING: return of 0/1 in function 'nouveau_display_scanoutpos' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
CC: Daniel Vetter <daniel.vetter at ffwll.ch>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---
nouveau_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -151,7 +151,7 @@ nouveau_display_scanoutpos(struct drm_de
}
}
- return 0;
+ return false;
}
static void
More information about the Intel-gfx
mailing list