Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756204AbbHDUCk (ORCPT ); Tue, 4 Aug 2015 16:02:40 -0400 Received: from mail-ob0-f170.google.com ([209.85.214.170]:35996 "EHLO mail-ob0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754584AbbHDUCj (ORCPT ); Tue, 4 Aug 2015 16:02:39 -0400 MIME-Version: 1.0 In-Reply-To: <1438717590-4263-1-git-send-email-salah.triki@acm.org> References: <1438717590-4263-1-git-send-email-salah.triki@acm.org> Date: Tue, 4 Aug 2015 22:02:38 +0200 Message-ID: Subject: Re: [PATCH] jffs2: Remove NULL checks from jffs2_destroy_slab_caches From: Richard Weinberger To: Salah Triki Cc: David Woodhouse , "linux-mtd@lists.infradead.org" , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 513 Lines: 15 On Tue, Aug 4, 2015 at 9:46 PM, Salah Triki wrote: > kmem_cache_destroy can be called with NULL values. Thus, the checks that > precede the calls are useless. Since when? I don't see a !NULL check in kmem_cache_destroy(). -- Thanks, //richard -- 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/