Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/dev/lib/libugenhc Fix error checking mistake introd...
details: https://anonhg.NetBSD.org/src/rev/579653d61cf5
branches: trunk
changeset: 331129:579653d61cf5
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Aug 02 12:38:01 2014 +0000
description:
Fix error checking mistake introduced in r1.15.
Hi Antti!
diffstat:
sys/rump/dev/lib/libugenhc/ugenhc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5e4bf3d4fff7 -r 579653d61cf5 sys/rump/dev/lib/libugenhc/ugenhc.c
--- a/sys/rump/dev/lib/libugenhc/ugenhc.c Sat Aug 02 11:43:21 2014 +0000
+++ b/sys/rump/dev/lib/libugenhc/ugenhc.c Sat Aug 02 12:38:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugenhc.c,v 1.21 2014/08/02 11:43:21 skrll Exp $ */
+/* $NetBSD: ugenhc.c,v 1.22 2014/08/02 12:38:01 skrll Exp $ */
/*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.21 2014/08/02 11:43:21 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugenhc.c,v 1.22 2014/08/02 12:38:01 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -618,7 +618,7 @@
for (;;) {
error = rumpuser_open(buf, RUMPUSER_OPEN_RDWR, &fd);
- if (error != 0)
+ if (error == 0)
break;
kpause("ugwait", false, hz/4, NULL);
}
Home |
Main Index |
Thread Index |
Old Index