From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932343AbWFNAnh (ORCPT ); Tue, 13 Jun 2006 20:43:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932372AbWFNAnh (ORCPT ); Tue, 13 Jun 2006 20:43:37 -0400 Received: from relay01.pair.com ([209.68.5.15]:6926 "HELO relay01.pair.com") by vger.kernel.org with SMTP id S932343AbWFNAng (ORCPT ); Tue, 13 Jun 2006 20:43:36 -0400 X-pair-Authenticated: 71.197.50.189 From: Chase Venters To: Matt Helsley Subject: Re: [PATCH 03/11] Task watchers: Refactor process events Date: Tue, 13 Jun 2006 19:43:12 -0500 User-Agent: KMail/1.9.3 Cc: Andrew Morton , Linux-Kernel , Jes Sorensen , LSE-Tech , Chandra S Seetharaman , Alan Stern , John T Kohl , Balbir Singh , Shailabh Nagar , Guillaume Thouvenin References: <20060613235122.130021000@localhost.localdomain> <1150242879.21787.143.camel@stark> In-Reply-To: <1150242879.21787.143.camel@stark> Organization: Clientec, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606131943.34800.chase.venters@clientec.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 13 June 2006 18:54, Matt Helsley wrote: > + WARN_ON((which_id != PROC_EVENT_UID) && (which_id != PROC_EVENT_GID)); > } How about WARN_ON(!(which_id & (PROC_EVENT_UID | PROC_EVENT_GID))) to save a cmp? Thanks, Chase