Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261930AbVCZDrn (ORCPT ); Fri, 25 Mar 2005 22:47:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261932AbVCZDrn (ORCPT ); Fri, 25 Mar 2005 22:47:43 -0500 Received: from sj-iport-2-in.cisco.com ([171.71.176.71]:18725 "EHLO sj-iport-2.cisco.com") by vger.kernel.org with ESMTP id S261930AbVCZDrl (ORCPT ); Fri, 25 Mar 2005 22:47:41 -0500 Message-Id: <200503260347.AXR12129@mira-sjc5-e.cisco.com> Reply-To: From: "Hua Zhong" To: "'Chris Wright'" , Cc: , , Subject: RE: Linux 2.6.11.6 Date: Fri, 25 Mar 2005 19:47:36 -0800 Organization: Cisco Systems MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcUxtiviXGHe+gIiQUW8uwy17G1V3QAAC4yg X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 In-Reply-To: <20050326034142.GW30522@shell0.pdx.osdl.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 493 Lines: 20 > int bt_sock_unregister(int proto) > { > - if (proto >= BT_MAX_PROTO) > + if (proto < 0 || proto >= BT_MAX_PROTO) > return -EINVAL; Just curious: would it be better to say if ((unsigned int)proto >= BT_MAX_PTORO) ? Is it faster too? Hua - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/