Assert equality, not assignment, in selrecord.

Code inspection suggests that this fix is not likely to reveal any
latent problems.
This commit is contained in:
riastradh 2013-01-26 19:38:17 +00:00
parent d391d2bf9a
commit 80ae1f3144

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $ */
/* $NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@ -84,7 +84,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.36 2011/08/29 00:39:16 rmind Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.37 2013/01/26 19:38:17 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -596,7 +596,7 @@ selrecord(lwp_t *selector, struct selinfo *sip)
if (other == selector) {
/* 1. We (selector) already claimed to be the first LWP. */
KASSERT(sip->sel_cluster = sc);
KASSERT(sip->sel_cluster == sc);
} else if (other == NULL) {
/*
* 2. No first LWP, therefore we (selector) are the first.