summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2013-12-08 03:30:01 +0000
committerbrad <brad@openbsd.org>2013-12-08 03:30:01 +0000
commit63321635c5f79042b38253d2e80bc4923451e912 (patch)
treee6d1c5a027ec3c45e6433541955d5576541ca725 /sys/compat/linux/linux_misc.c
parentSome cleaning up of the ioctl handling bits to bring things in line (diff)
downloadwireguard-openbsd-63321635c5f79042b38253d2e80bc4923451e912.tar.xz
wireguard-openbsd-63321635c5f79042b38253d2e80bc4923451e912.zip
Remove unsigned comparison < 0.
Pointed out by LLVM. ok pirofti@
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 1947a3d3507..c087a93b131 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.83 2013/10/25 05:10:03 guenther Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.84 2013/12/08 03:30:01 brad Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -1657,7 +1657,7 @@ linux_sys_prctl(struct proc *p, void *v, register_t *retval)
switch (SCARG(uap, option)) {
case LINUX_PR_SET_PDEATHSIG:
- if (SCARG(uap, arg2) < 0 || SCARG(uap, arg2) >= LINUX__NSIG)
+ if (SCARG(uap, arg2) >= LINUX__NSIG)
return (EINVAL);
ed->pdeath_signal = SCARG(uap, arg2);
break;