Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629Ab1FVFeh (ORCPT ); Wed, 22 Jun 2011 01:34:37 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:62999 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724Ab1FVFef (ORCPT ); Wed, 22 Jun 2011 01:34:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:message-id :mime-version; b=pegWEn5Dxp6BVZRB+PNZNzgG1UMqIwVeRzFUxrHL8znEtiqtt5giGdXw1a3wcvUKd+ skYsk8NQUqLSAGyKmq3Y8aA18Puv+EHEak64+MRwQgGbJcVnibw2L/LCs0csEiCZQ/W0 JhuXamIQ/Ea6jhP6W8ZcXXEmEFx1oiZRKCfw8= Subject: Re: [PATCH/Trivial] jffs2: Avoid unneeded 'if' before kfree From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Jesper Juhl Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, David Woodhouse , trivial@kernel.org Date: Wed, 22 Jun 2011 08:35:17 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2 (3.0.2-2.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1308720921.18119.33.camel@sauron> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 580 Lines: 18 On Mon, 2011-06-13 at 22:16 +0200, Jesper Juhl wrote: > kfree() deals gracefully with NULL pointers, so it's pointless to test for > one prior to calling it. > This removes such a test from jffs2_scan_medium(). > > Signed-off-by: Jesper Juhl Pushed to l2-mtd-2.6.git, thanks! -- Best Regards, Artem Bityutskiy -- 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/