summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index ed98e6c..c395ee3 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -480,8 +480,8 @@ tunread(dev, uio, flag)
return EWOULDBLOCK;
}
tp->tun_flags |= TUN_RWAIT;
- if( error = tsleep((caddr_t)tp, PCATCH | (PZERO + 1),
- "tunread", 0)) {
+ if((error = tsleep((caddr_t)tp, PCATCH | (PZERO + 1),
+ "tunread", 0)) != 0) {
splx(s);
return error;
}
OpenPOWER on IntegriCloud