Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev - remove unused variables
details: https://anonhg.NetBSD.org/src/rev/7e5999a066bf
branches: trunk
changeset: 790587:7e5999a066bf
user: christos <christos%NetBSD.org@localhost>
date: Thu Oct 17 21:20:10 2013 +0000
description:
- remove unused variables
- moved debugging variable into debugging ifdef
diffstat:
sys/dev/video.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 9387011f6bfd -r 7e5999a066bf sys/dev/video.c
--- a/sys/dev/video.c Thu Oct 17 21:19:40 2013 +0000
+++ b/sys/dev/video.c Thu Oct 17 21:20:10 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: video.c,v 1.29 2013/01/07 15:07:40 prlw1 Exp $ */
+/* $NetBSD: video.c,v 1.30 2013/10/17 21:20:10 christos Exp $ */
/*
* Copyright (c) 2008 Patrick Mahoney <pat%polycrystal.org@localhost>
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: video.c,v 1.29 2013/01/07 15:07:40 prlw1 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: video.c,v 1.30 2013/10/17 21:20:10 christos Exp $");
#include "video.h"
#if NVIDEO > 0
@@ -315,10 +315,12 @@
static int
video_match(device_t parent, cfdata_t match, void *aux)
{
+#ifdef VIDEO_DEBUG
struct video_attach_args *args;
args = aux;
DPRINTF(("video_match: hw=%p\n", args->hw_if));
+#endif
return 1;
}
@@ -397,11 +399,8 @@
static int
video_print(void *aux, const char *pnp)
{
- struct video_attach_args *arg;
-
if (pnp != NULL) {
DPRINTF(("video_print: have pnp\n"));
- arg = aux;
aprint_normal("%s at %s\n", "video", pnp);
} else {
DPRINTF(("video_print: pnp is NULL\n"));
Home |
Main Index |
Thread Index |
Old Index