[Nouveau] [PATCH] drm/nouveau: honor return type of nvif_mthd, trivial
Tobias Klausmann
tobias.johannes.klausmann at mni.thm.de
Wed Jul 12 21:21:13 UTC 2017
nvif_mthd() returns an int, so provide that for return checking
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
drivers/gpu/drm/nouveau/nouveau_display.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 8d1df5678eaa..f8f555e2e912 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -113,10 +113,11 @@ nouveau_display_scanoutpos_head(struct drm_crtc *crtc, int *vpos, int *hpos,
struct drm_vblank_crtc *vblank = &crtc->dev->vblank[drm_crtc_index(crtc)];
int retry = 20;
bool ret = false;
+ int method_ret;
do {
- ret = nvif_mthd(&disp->disp, 0, &args, sizeof(args));
- if (ret != 0)
+ int method_ret = nvif_mthd(&disp->disp, 0, &args, sizeof(args));
+ if (method_ret != 0)
return false;
if (args.scan.vline) {
--
2.13.2
More information about the Nouveau
mailing list