Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/dev fixed unused variable warning
details: https://anonhg.NetBSD.org/src/rev/d366c97a0553
branches: trunk
changeset: 791236:d366c97a0553
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 09 21:31:45 2013 +0000
description:
fixed unused variable warning
diffstat:
sys/arch/sh3/dev/scif.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 98f9537d3dae -r d366c97a0553 sys/arch/sh3/dev/scif.c
--- a/sys/arch/sh3/dev/scif.c Sat Nov 09 20:32:59 2013 +0000
+++ b/sys/arch/sh3/dev/scif.c Sat Nov 09 21:31:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scif.c,v 1.61 2012/02/02 19:43:00 tls Exp $ */
+/* $NetBSD: scif.c,v 1.62 2013/11/09 21:31:45 christos Exp $ */
/*-
* Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu. All rights reserved.
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.61 2012/02/02 19:43:00 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scif.c,v 1.62 2013/11/09 21:31:45 christos Exp $");
#include "opt_kgdb.h"
#include "opt_scif.h"
@@ -695,12 +695,11 @@
scif_iflush(struct scif_softc *sc)
{
int i;
- unsigned char c;
i = scif_fdr_read() & SCFDR2_RECVCNT;
while (i > 0) {
- c = scif_frdr_read();
+ (void)scif_frdr_read();
scif_ssr_write(scif_ssr_read() & ~(SCSSR2_RDF | SCSSR2_DR));
i--;
}
Home |
Main Index |
Thread Index |
Old Index