Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Comment out unused variables
details: https://anonhg.NetBSD.org/src/rev/9122a18c1396
branches: trunk
changeset: 790041:9122a18c1396
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 13:49:25 2013 +0000
description:
Comment out unused variables
diffstat:
sys/dev/pci/satalink.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r a848b23d6e51 -r 9122a18c1396 sys/dev/pci/satalink.c
--- a/sys/dev/pci/satalink.c Sun Sep 15 13:45:31 2013 +0000
+++ b/sys/dev/pci/satalink.c Sun Sep 15 13:49:25 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satalink.c,v 1.49 2012/10/27 17:18:35 chs Exp $ */
+/* $NetBSD: satalink.c,v 1.50 2013/09/15 13:49:25 martin Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: satalink.c,v 1.49 2012/10/27 17:18:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: satalink.c,v 1.50 2013/09/15 13:49:25 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -795,7 +795,7 @@
struct pciide_softc *sc = CHAN_TO_PCIIDE(chp);
struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
uint32_t scontrol, sstatus;
- uint8_t scnt, sn, cl, ch;
+ uint8_t /* scnt, sn, */ cl, ch;
int s;
/*
@@ -857,10 +857,12 @@
WDSD_IBM | (0 << 4));
delay(10); /* 400ns delay */
/* Save register contents. */
+#if 0
scnt = bus_space_read_1(wdr->cmd_iot,
wdr->cmd_iohs[wd_seccnt], 0);
sn = bus_space_read_1(wdr->cmd_iot,
wdr->cmd_iohs[wd_sector], 0);
+#endif
cl = bus_space_read_1(wdr->cmd_iot,
wdr->cmd_iohs[wd_cyl_lo], 0);
ch = bus_space_read_1(wdr->cmd_iot,
Home |
Main Index |
Thread Index |
Old Index