From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.parallels.com (mx2.parallels.com [64.131.90.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A2E892C0086 for ; Fri, 6 Jul 2012 19:07:06 +1000 (EST) Message-ID: <4FF6AA11.2010303@parallels.com> Date: Fri, 6 Jul 2012 13:04:17 +0400 From: Glauber Costa MIME-Version: 1.0 To: Li Zhong Subject: Re: [PATCH SLAB 1/2 v3] duplicate the cache name in SLUB's saved_alias list, SLAB, and SLOB References: <1341561286.24895.9.camel@ThinkPad-T420> In-Reply-To: <1341561286.24895.9.camel@ThinkPad-T420> Content-Type: text/plain; charset="UTF-8" Cc: Christoph Lameter , LKML , Pekka Enberg , linux-mm , Paul Mackerras , Matt Mackall , PowerPC email list , Wanlong Gao List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 07/06/2012 11:54 AM, Li Zhong wrote: > + if (!c && lname) > + kfree(lname); > + kfree can still be validly called with a NULL argument. No need for the lname in the conditional.