Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/512536100933
branches: trunk
changeset: 790013:512536100933
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 09:17:28 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/ic/pcf8584.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r f151264cca2f -r 512536100933 sys/dev/ic/pcf8584.c
--- a/sys/dev/ic/pcf8584.c Sun Sep 15 09:16:21 2013 +0000
+++ b/sys/dev/ic/pcf8584.c Sun Sep 15 09:17:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcf8584.c,v 1.9 2010/04/16 18:58:39 dyoung Exp $ */
+/* $NetBSD: pcf8584.c,v 1.10 2013/09/15 09:17:28 martin Exp $ */
/* $OpenBSD: pcf8584.c,v 1.9 2007/10/20 18:46:21 kettenis Exp $ */
/*
@@ -266,9 +266,8 @@
void
pcfiic_write(struct pcfiic_softc *sc, bus_size_t r, u_int8_t v)
{
- volatile uint8_t junk;
bus_space_write_1(sc->sc_iot, sc->sc_ioh, sc->sc_regmap[r], v);
- junk = bus_space_read_1(sc->sc_iot, sc->sc_ioh, PCF_S1);
+ (void)bus_space_read_1(sc->sc_iot, sc->sc_ioh, PCF_S1);
}
void
Home |
Main Index |
Thread Index |
Old Index