Module Name: src Committed By: tnn Date: Thu Aug 30 19:03:14 UTC 2018
Modified Files: src/sys/external/bsd/drm2/drm: drm_agp_hook.c Log Message: initialize error variable To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/drm/drm_agp_hook.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/drm/drm_agp_hook.c diff -u src/sys/external/bsd/drm2/drm/drm_agp_hook.c:1.1 src/sys/external/bsd/drm2/drm/drm_agp_hook.c:1.2 --- src/sys/external/bsd/drm2/drm/drm_agp_hook.c:1.1 Tue Aug 28 03:41:39 2018 +++ src/sys/external/bsd/drm2/drm/drm_agp_hook.c Thu Aug 30 19:03:14 2018 @@ -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 @@ drm_agp_register(const struct drm_agp_ho 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);