Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci cast away unused return value



details:   https://anonhg.NetBSD.org/src/rev/ec8a4b220268
branches:  trunk
changeset: 460757:ec8a4b220268
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Nov 02 21:11:55 2019 +0000

description:
cast away unused return value

diffstat:

 sys/dev/pci/if_ste.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ce3e1867c79b -r ec8a4b220268 sys/dev/pci/if_ste.c
--- a/sys/dev/pci/if_ste.c      Sat Nov 02 19:22:36 2019 +0000
+++ b/sys/dev/pci/if_ste.c      Sat Nov 02 21:11:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ste.c,v 1.57 2019/10/30 07:26:28 msaitoh Exp $      */
+/*     $NetBSD: if_ste.c,v 1.58 2019/11/02 21:11:55 tnn Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.57 2019/10/30 07:26:28 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ste.c,v 1.58 2019/11/02 21:11:55 tnn Exp $");
 
 
 #include <sys/param.h>
@@ -1100,7 +1100,7 @@
        ifp->if_opackets +=
            (u_int) bus_space_read_2(st, sh, STE_FramesTransmittedOK);
 
-       (u_int) bus_space_read_2(st, sh, STE_FramesReceivedOK);
+       (void) bus_space_read_2(st, sh, STE_FramesReceivedOK);
 
        ifp->if_collisions +=
            (u_int) bus_space_read_1(st, sh, STE_LateCollisions) +



Home | Main Index | Thread Index | Old Index