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/drm initialize error variable



details:   https://anonhg.NetBSD.org/src/rev/dd7106c3a89c
branches:  trunk
changeset: 366509:dd7106c3a89c
user:      tnn <tnn%NetBSD.org@localhost>
date:      Thu Aug 30 19:03:14 2018 +0000

description:
initialize error variable

diffstat:

 sys/external/bsd/drm2/drm/drm_agp_hook.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2973b5bd744a -r dd7106c3a89c sys/external/bsd/drm2/drm/drm_agp_hook.c
--- a/sys/external/bsd/drm2/drm/drm_agp_hook.c  Thu Aug 30 13:13:24 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_agp_hook.c  Thu Aug 30 19:03:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_agp_hook.c,v 1.1 2018/08/28 03:41:39 riastradh Exp $       */
+/*     $NetBSD: drm_agp_hook.c,v 1.2 2018/08/30 19:03:14 tnn Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_agp_hook.c,v 1.1 2018/08/28 03:41:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_agp_hook.c,v 1.2 2018/08/30 19:03:14 tnn Exp $");
 
 #include <sys/types.h>
 #include <sys/condvar.h>
@@ -89,7 +89,7 @@
 int
 drm_agp_deregister(const struct drm_agp_hooks *hooks)
 {
-       int error;
+       int error = 0;
 
        mutex_enter(&agp_hooks.lock);
        KASSERT(agp_hooks.hooks == hooks);



Home | Main Index | Thread Index | Old Index