Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu Fix gcc uninitiali...
details: https://anonhg.NetBSD.org/src/rev/156b5220a5a0
branches: trunk
changeset: 1009516:156b5220a5a0
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Apr 25 12:39:15 2020 +0000
description:
Fix gcc uninitialised variable warning.
diffstat:
sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_display.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 80a874897200 -r 156b5220a5a0 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_display.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_display.c Sat Apr 25 12:18:47 2020 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_display.c Sat Apr 25 12:39:15 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_display.c,v 1.6 2020/02/14 04:38:13 riastradh Exp $ */
+/* $NetBSD: amdgpu_display.c,v 1.7 2020/04/25 12:39:15 simonb Exp $ */
/*
* Copyright 2007-8 Advanced Micro Devices, Inc.
@@ -26,7 +26,7 @@
* Alex Deucher
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_display.c,v 1.6 2020/02/14 04:38:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_display.c,v 1.7 2020/04/25 12:39:15 simonb Exp $");
#include <drm/drmP.h>
#include <drm/amdgpu_drm.h>
@@ -78,7 +78,7 @@
struct drm_crtc *crtc = &amdgpuCrtc->base;
unsigned long flags;
unsigned i, repcnt = 4;
- int vpos, hpos, stat, min_udelay = 0;
+ int vpos, hpos, stat = 0, min_udelay = 0;
struct drm_vblank_crtc *vblank = &crtc->dev->vblank[work->crtc_id];
amdgpu_flip_wait_fence(adev, &work->excl);
Home |
Main Index |
Thread Index |
Old Index