Annotate that gpiobus_close's return value is undesired here

This commit is contained in:
joerg 2011-06-09 14:46:06 +00:00
parent 1f2bb173aa
commit d4d21d35eb

View File

@ -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 @@ gpioclose(dev_t dev, int flag, int mode, struct lwp *l)
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;