Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/gpio Annotate that gpiobus_close's return value is u...
details: https://anonhg.NetBSD.org/src/rev/12cece546ca4
branches: trunk
changeset: 765897:12cece546ca4
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jun 09 14:46:06 2011 +0000
description:
Annotate that gpiobus_close's return value is undesired here
diffstat:
sys/dev/gpio/gpio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b6b0f3747b68 -r 12cece546ca4 sys/dev/gpio/gpio.c
--- a/sys/dev/gpio/gpio.c Thu Jun 09 14:41:24 2011 +0000
+++ b/sys/dev/gpio/gpio.c Thu Jun 09 14:46:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gpio.c,v 1.33 2010/04/25 11:23:34 ad Exp $ */
+/* $NetBSD: gpio.c,v 1.34 2011/06/09 14:46:06 joerg Exp $ */
/* $OpenBSD: gpio.c,v 1.6 2006/01/14 12:33:49 grange Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.33 2010/04/25 11:23:34 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gpio.c,v 1.34 2011/06/09 14:46:06 joerg Exp $");
/*
* General Purpose Input/Output framework.
@@ -362,7 +362,7 @@
sc = device_lookup_private(&gpio_cd, minor(dev));
DPRINTF(("%s: closing\n", device_xname(sc->sc_dev)));
- gpiobus_close(sc->sc_gc, sc->sc_dev);
+ (void)gpiobus_close(sc->sc_gc, sc->sc_dev);
sc->sc_opened = 0;
return 0;
Home |
Main Index |
Thread Index |
Old Index