Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib/libshmif Fix handling return value of rumpc...



details:   https://anonhg.NetBSD.org/src/rev/82633c291a03
branches:  trunk
changeset: 819896:82633c291a03
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Dec 22 10:13:09 2016 +0000

description:
Fix handling return value of rumpcomp_shmif_watchwait

diffstat:

 sys/rump/net/lib/libshmif/if_shmem.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r df5294f1d4f9 -r 82633c291a03 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c      Thu Dec 22 09:44:56 2016 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c      Thu Dec 22 10:13:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_shmem.c,v 1.70 2016/12/15 09:28:07 ozaki-r Exp $    */
+/*     $NetBSD: if_shmem.c,v 1.71 2016/12/22 10:13:09 ozaki-r Exp $    */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.70 2016/12/15 09:28:07 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.71 2016/12/22 10:13:09 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -685,8 +685,7 @@
                    shmif_nextpktoff(busmem, busmem->shm_last)
                     == sc->sc_nextpacket) {
                        shmif_unlockbus(busmem);
-                       error = 0;
-                       rumpcomp_shmif_watchwait(sc->sc_kq);
+                       error = rumpcomp_shmif_watchwait(sc->sc_kq);
                        if (__predict_false(error))
                                printf("shmif_rcv: wait failed %d\n", error);
                        membar_consumer();



Home | Main Index | Thread Index | Old Index