Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Apr 2002 14:57:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Apr 2002 14:57:29 -0400 Received: from meg.hrz.tu-chemnitz.de ([134.109.132.57]:52491 "EHLO meg.hrz.tu-chemnitz.de") by vger.kernel.org with ESMTP id ; Wed, 24 Apr 2002 14:57:28 -0400 Date: Wed, 24 Apr 2002 20:56:22 +0200 From: Ingo Oeser To: Kasper Dupont Cc: linux-kernel@vger.kernel.org Subject: Re: [patch] 2.5.9 remove warnings Message-ID: <20020424205622.J696@nightmaster.csn.tu-chemnitz.de> In-Reply-To: <10704.1019533171@kao2.melbourne.sgi.com> <3CC5A8AF.432380E3@zip.com.au> <3CC5CD38.DC57DFA3@daimi.au.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2002 at 11:08:08PM +0200, Kasper Dupont wrote: > Wouldn't "!!(x)" make more sense here than "(x) != 0"? > (I don't like comparing pointers with integers.) No, == 0 means, that the pointer is invalid, so != 0 means, the pointer is valid. You can find this in the C99-Standard at least. So, this is perfectly normal ;-) Regards Ingo Oeser -- Science is what we can tell a computer. Art is everything else. --- D.E.Knuth - 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/