Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/f38e3a680b22
branches: trunk
changeset: 790046:f38e3a680b22
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 14:08:25 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/sun/sunkbd.c | 7 ++-----
sys/kern/subr_kobj_vfs.c | 7 ++-----
2 files changed, 4 insertions(+), 10 deletions(-)
diffs (65 lines):
diff -r 20b7396a2a06 -r f38e3a680b22 sys/dev/sun/sunkbd.c
--- a/sys/dev/sun/sunkbd.c Sun Sep 15 14:04:04 2013 +0000
+++ b/sys/dev/sun/sunkbd.c Sun Sep 15 14:08:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunkbd.c,v 1.28 2010/08/14 20:52:05 jym Exp $ */
+/* $NetBSD: sunkbd.c,v 1.29 2013/09/15 14:10:04 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.28 2010/08/14 20:52:05 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunkbd.c,v 1.29 2013/09/15 14:10:04 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -239,11 +239,8 @@
sunkbdinput(int c, struct tty *tp)
{
struct kbd_sun_softc *k = tp->t_sc;
- u_char *cc;
int error;
- cc = tp->t_cc;
-
/*
* Handle exceptional conditions (break, parity, framing).
*/
diff -r 20b7396a2a06 -r f38e3a680b22 sys/kern/subr_kobj_vfs.c
--- a/sys/kern/subr_kobj_vfs.c Sun Sep 15 14:04:04 2013 +0000
+++ b/sys/kern/subr_kobj_vfs.c Sun Sep 15 14:08:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kobj_vfs.c,v 1.6 2011/08/13 21:04:07 christos Exp $ */
+/* $NetBSD: subr_kobj_vfs.c,v 1.7 2013/09/15 14:08:25 martin Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
#include <sys/vnode.h>
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_kobj_vfs.c,v 1.6 2011/08/13 21:04:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_kobj_vfs.c,v 1.7 2013/09/15 14:08:25 martin Exp $");
static void
kobj_close_vfs(kobj_t ko)
@@ -135,7 +135,6 @@
{
struct nameidata nd;
struct pathbuf *pb;
- kauth_cred_t cred;
int error;
kobj_t ko;
@@ -143,8 +142,6 @@
if (strchr(path, '/') == NULL)
return ENOENT;
- cred = kauth_cred_get();
-
ko = kmem_zalloc(sizeof(*ko), KM_SLEEP);
if (ko == NULL) {
return ENOMEM;
Home |
Main Index |
Thread Index |
Old Index