Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/spi Remove an unused variable
details: https://anonhg.NetBSD.org/src/rev/2021fec72c1e
branches: trunk
changeset: 326412:2021fec72c1e
user: martin <martin%NetBSD.org@localhost>
date: Tue Jan 28 19:26:32 2014 +0000
description:
Remove an unused variable
diffstat:
sys/dev/spi/spiflash.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r a2675379f70f -r 2021fec72c1e sys/dev/spi/spiflash.c
--- a/sys/dev/spi/spiflash.c Tue Jan 28 18:56:46 2014 +0000
+++ b/sys/dev/spi/spiflash.c Tue Jan 28 19:26:32 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spiflash.c,v 1.11 2013/02/15 17:46:53 rkujawa Exp $ */
+/* $NetBSD: spiflash.c,v 1.12 2014/01/28 19:26:32 martin Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.11 2013/02/15 17:46:53 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.12 2014/01/28 19:26:32 martin Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -509,10 +509,9 @@
{
spiflash_handle_t sc = arg;
struct buf *bp;
- int s;
int sector;
- s = splbio();
+ (void)splbio();
for (;;) {
if ((bp = bufq_get(sc->sc_waitq)) == NULL) {
tsleep(&sc->sc_thread, PRIBIO, "spiflash_thread", 0);
Home |
Main Index |
Thread Index |
Old Index