Module Name: src
Committed By: martin
Date: Fri Oct 25 21:50:28 UTC 2013
Modified Files:
src/sys/arch/mac68k/obio: wdc_obio.c
Log Message:
Simplify
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/mac68k/obio/wdc_obio.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/arch/mac68k/obio/wdc_obio.c
diff -u src/sys/arch/mac68k/obio/wdc_obio.c:1.26 src/sys/arch/mac68k/obio/wdc_obio.c:1.27
--- src/sys/arch/mac68k/obio/wdc_obio.c:1.26 Tue Jul 31 15:50:32 2012
+++ src/sys/arch/mac68k/obio/wdc_obio.c Fri Oct 25 21:50:28 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: wdc_obio.c,v 1.26 2012/07/31 15:50:32 bouyer Exp $ */
+/* $NetBSD: wdc_obio.c,v 1.27 2013/10/25 21:50:28 martin Exp $ */
/*
* Copyright (c) 2002 Takeshi Shibagaki All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.26 2012/07/31 15:50:32 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.27 2013/10/25 21:50:28 martin Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -91,7 +91,6 @@ wdc_obio_match(device_t parent, cfdata_t
struct ata_channel ch;
struct wdc_softc wdc;
struct wdc_regs wdr;
- static int wdc_matched = 0;
int i, result = 0;
memset(&wdc, 0, sizeof(wdc));
@@ -132,8 +131,6 @@ wdc_obio_match(device_t parent, cfdata_t
bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_OBIO_REG_NPORTS);
- if (result)
- wdc_matched = 1;
return (result);
}
return 0;