Remove unused variable

This commit is contained in:
martin 2013-09-15 14:08:25 +00:00
parent e67f4be258
commit 10c5b4d905
2 changed files with 4 additions and 10 deletions

View File

@ -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 @@ int
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).
*/

View File

@ -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 @@ kobj_load_vfs(kobj_t *kop, const char *path, const bool nochroot)
{
struct nameidata nd;
struct pathbuf *pb;
kauth_cred_t cred;
int error;
kobj_t ko;
@ -143,8 +142,6 @@ kobj_load_vfs(kobj_t *kop, const char *path, const bool nochroot)
if (strchr(path, '/') == NULL)
return ENOENT;
cred = kauth_cred_get();
ko = kmem_zalloc(sizeof(*ko), KM_SLEEP);
if (ko == NULL) {
return ENOMEM;