Make it compilable even if FDDEBUG was defined.
This commit is contained in:
parent
78ff31a2cf
commit
7379f550c7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fd.c,v 1.84 2008/06/25 12:56:40 isaki Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.85 2008/06/29 09:44:11 isaki Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.84 2008/06/25 12:56:40 isaki Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.85 2008/06/29 09:44:11 isaki Exp $");
|
||||
|
||||
#include "rnd.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -621,10 +621,12 @@ void
|
||||
fdstrategy(struct buf *bp)
|
||||
{
|
||||
struct fd_softc *fd;
|
||||
int unit;
|
||||
int sz;
|
||||
int s;
|
||||
|
||||
fd = device_lookup_private(&fd_cd, FDUNIT(bp->b_dev));
|
||||
unit = FDUNIT(bp->b_dev);
|
||||
fd = device_lookup_private(&fd_cd, unit);
|
||||
if (fd == NULL) {
|
||||
bp->b_error = EINVAL;
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user