svn commit: r353574 - head/sys/mips/nlm/dev/net/ucore

John Baldwin jhb at FreeBSD.org
Tue Oct 15 17:17:17 UTC 2019


Author: jhb
Date: Tue Oct 15 17:17:16 2019
New Revision: 353574
URL: https://svnweb.freebsd.org/changeset/base/353574

Log:
  Fix a write-only variable warning from external GCC.
  
  Reviewed by:	imp
  Differential Revision:	https://reviews.freebsd.org/D22032

Modified:
  head/sys/mips/nlm/dev/net/ucore/ucore_app.c

Modified: head/sys/mips/nlm/dev/net/ucore/ucore_app.c
==============================================================================
--- head/sys/mips/nlm/dev/net/ucore/ucore_app.c	Tue Oct 15 17:14:30 2019	(r353573)
+++ head/sys/mips/nlm/dev/net/ucore/ucore_app.c	Tue Oct 15 17:17:16 2019	(r353574)
@@ -34,13 +34,12 @@
 
 int main(void)
 {
-	unsigned int pktrdy;
 	int num_cachelines = 1518 / 64 ; /* pktsize / L3 cacheline size */
 
 
 	/* Spray packets to using distribution vector */
 	while (1) {
-		pktrdy = nlm_read_ucore_rxpktrdy();
+		(void)nlm_read_ucore_rxpktrdy();
 		nlm_ucore_setup_poepktdistr(FWD_DIST_VEC, 0, 0, 0, 0);
 		nlm_ucore_pkt_done(num_cachelines, 0, 0, 0, 0, 0, 0, 0, 0, 0,
 		    0, 0);


More information about the svn-src-head mailing list