declare error

This commit is contained in:
christos 2015-01-01 17:46:09 +00:00
parent 2284275e2c
commit 555c17c325
3 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.81 2014/12/31 19:52:04 christos Exp $ */
/* $NetBSD: fd.c,v 1.82 2015/01/01 17:46:09 christos Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.81 2014/12/31 19:52:04 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.82 2015/01/01 17:46:09 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -426,6 +426,7 @@ int
fdioctl(dev_t dev, u_long cmd, void * addr, int flag, struct lwp *l)
{
struct fd_softc *sc;
int error;
sc = device_lookup_private(&fd_cd, DISKUNIT(dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: iwm_fd.c,v 1.51 2014/12/31 19:52:05 christos Exp $ */
/* $NetBSD: iwm_fd.c,v 1.52 2015/01/01 17:47:21 christos Exp $ */
/*
* Copyright (c) 1997, 1998 Hauke Fath. All rights reserved.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.51 2014/12/31 19:52:05 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: iwm_fd.c,v 1.52 2015/01/01 17:47:21 christos Exp $");
#include "locators.h"
@ -703,6 +703,7 @@ fdioctl(dev_t dev, u_long cmd, void *data, int flags, struct lwp *l)
int result, fdUnit, fdType;
fd_softc_t *fd;
iwm_softc_t *iwm = device_lookup_private(&iwm_cd, 0);
int error;
if (TRACE_IOCTL)
printf("iwm: Execute ioctl... ");

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.112 2014/12/31 19:52:05 christos Exp $ */
/* $NetBSD: fd.c,v 1.113 2015/01/01 17:48:56 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.112 2014/12/31 19:52:05 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.113 2015/01/01 17:48:56 christos Exp $");
#include "opt_ddb.h"
#include "opt_m68k_arch.h"
@ -1612,7 +1612,7 @@ fdioctl(dev_t dev, u_long cmd, void *addr, int flag, struct lwp *l)
int error;
unsigned int scratch;
int il[FD_MAX_NSEC + 1];
int i, j;
int i, j, error;
error = disk_ioctl(&fd->sc_dk, dev, cmd, addr, flag, l);
if (error != EPASSTHROUGH)