Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia Always initialize error.
details: https://anonhg.NetBSD.org/src/rev/7d93facbf3cc
branches: trunk
changeset: 813475:7d93facbf3cc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Jan 30 00:00:56 2016 +0000
description:
Always initialize error.
Found by joerg.
diffstat:
sys/arch/arm/nvidia/tegra_drm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 5eddcf690e47 -r 7d93facbf3cc sys/arch/arm/nvidia/tegra_drm.c
--- a/sys/arch/arm/nvidia/tegra_drm.c Fri Jan 29 23:58:22 2016 +0000
+++ b/sys/arch/arm/nvidia/tegra_drm.c Sat Jan 30 00:00:56 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_drm.c,v 1.5 2015/12/22 22:10:36 jmcneill Exp $ */
+/* $NetBSD: tegra_drm.c,v 1.6 2016/01/30 00:00:56 riastradh Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_drm.c,v 1.5 2015/12/22 22:10:36 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_drm.c,v 1.6 2016/01/30 00:00:56 riastradh Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -350,6 +350,8 @@
error = drm_gem_create_mmap_offset(&obj->base);
if (error)
goto done;
+ } else {
+ error = 0;
}
*offset = drm_vma_node_offset_addr(&obj->base.vma_node);
Home |
Main Index |
Thread Index |
Old Index