Module Name: src Committed By: christos Date: Thu Oct 17 21:20:10 UTC 2013
Modified Files: src/sys/dev: video.c Log Message: - remove unused variables - moved debugging variable into debugging ifdef To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/dev/video.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/dev/video.c diff -u src/sys/dev/video.c:1.29 src/sys/dev/video.c:1.30 --- src/sys/dev/video.c:1.29 Mon Jan 7 10:07:40 2013 +++ src/sys/dev/video.c Thu Oct 17 17:20:10 2013 @@ -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 <p...@polycrystal.org> @@ -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 const char * video_ioctl_str(u_lo 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 @@ video_detach(device_t self, int flags) 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"));