Module Name: src
Committed By: joerg
Date: Thu Jun 9 14:46:06 UTC 2011
Modified Files:
src/sys/dev/gpio: gpio.c
Log Message:
Annotate that gpiobus_close's return value is undesired here
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/gpio/gpio.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/dev/gpio/gpio.c
diff -u src/sys/dev/gpio/gpio.c:1.33 src/sys/dev/gpio/gpio.c:1.34
--- src/sys/dev/gpio/gpio.c:1.33 Sun Apr 25 11:23:34 2010
+++ src/sys/dev/gpio/gpio.c Thu Jun 9 14:46:06 2011
@@ -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;