Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753479Ab1EEUol (ORCPT ); Thu, 5 May 2011 16:44:41 -0400 Received: from swampdragon.chaosbits.net ([90.184.90.115]:14240 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193Ab1EEUok (ORCPT ); Thu, 5 May 2011 16:44:40 -0400 Date: Thu, 5 May 2011 22:37:53 +0200 (CEST) From: Jesper Juhl To: J Freyensee cc: gregkh@suse.de, linux-kernel@vger.kernel.org, suhail.ahmed@intel.com, christophe.guerard@intel.com Subject: Re: [PATCH 3/4] Intel PTI implementaiton of MIPI 1149.7. In-Reply-To: <1304615163.8860.58.camel@localhost> Message-ID: References: <1303515150-1718-4-git-send-email-james_p_freyensee@linux.intel.com> <1304615163.8860.58.camel@localhost> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 655 Lines: 20 On Thu, 5 May 2011, J Freyensee wrote: [...] > > I'm no means an expert in the kernel, but I assume kfree() is like C > free(), that it's a nop if it receives a NULL value? > Yes. kfree(NULL) is a nop, so you can avoid the conditional branch. -- Jesper Juhl http://www.chaosbits.net/ Don't top-post http://www.catb.org/jargon/html/T/top-post.html Plain text mails only, please. -- 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/