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 XXX: add a NULL init to avoid a GC...
details: https://anonhg.NetBSD.org/src/rev/5ed7bbd4ebba
branches: trunk
changeset: 359328:5ed7bbd4ebba
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Feb 07 06:18:46 2018 +0000
description:
XXX: add a NULL init to avoid a GCC 6 maybe uninit warning.
diffstat:
sys/external/bsd/drm2/drm/drm_scatter.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ee40de4029d0 -r 5ed7bbd4ebba sys/external/bsd/drm2/drm/drm_scatter.c
--- a/sys/external/bsd/drm2/drm/drm_scatter.c Wed Feb 07 06:18:11 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_scatter.c Wed Feb 07 06:18:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_scatter.c,v 1.3 2014/07/16 20:56:25 riastradh Exp $ */
+/* $NetBSD: drm_scatter.c,v 1.4 2018/02/07 06:18:46 mrg Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_scatter.c,v 1.3 2014/07/16 20:56:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_scatter.c,v 1.4 2018/02/07 06:18:46 mrg Exp $");
#include <sys/types.h>
#include <sys/bus.h>
@@ -50,7 +50,7 @@
struct drm_file *file __unused)
{
struct drm_scatter_gather *const request = data;
- struct drm_sg_mem *sg;
+ struct drm_sg_mem *sg = NULL;
int error;
/*
Home |
Main Index |
Thread Index |
Old Index