Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbWHUNSh (ORCPT ); Mon, 21 Aug 2006 09:18:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751649AbWHUNSh (ORCPT ); Mon, 21 Aug 2006 09:18:37 -0400 Received: from wohnheim.fh-wedel.de ([213.39.233.138]:24518 "EHLO wohnheim.fh-wedel.de") by vger.kernel.org with ESMTP id S1751409AbWHUNSg (ORCPT ); Mon, 21 Aug 2006 09:18:36 -0400 Date: Mon, 21 Aug 2006 15:18:31 +0200 From: =?iso-8859-1?Q?J=F6rn?= Engel To: Jan-Bernd Themann Cc: Alexey Dobriyan , netdev@vger.kernel.org, Christoph Raisch , Jan-Bernd Themann , linux-kernel , linux-ppc , Marcus Eder , Thomas Klein , Thomas Klein Subject: Re: [2.6.19 PATCH 1/7] ehea: interface to network stack Message-ID: <20060821131831.GA31094@wohnheim.fh-wedel.de> References: <200608181329.02042.ossthema@de.ibm.com> <20060818144429.GF5201@martell.zuzino.mipt.ru> <200608211423.54250.ossthema@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200608211423.54250.ossthema@de.ibm.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 23 On Mon, 21 August 2006 14:23:53 +0200, Jan-Bernd Themann wrote: > > Is it valid (common in the kernel environment) to treat NULL as 0 after a memset > and thus to forget about initialization? Yes. According to C99, "An implementation might conveivably have codes for floating zero and/or null pointer other than all bits zero." But as long as you don't use floating point (you shouldn't) and don't redefine NULL to something other than (void*)0, this is rather "inconceivable" for the kernel. J?rn -- Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan - 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/