Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbbKPScZ (ORCPT ); Mon, 16 Nov 2015 13:32:25 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:39386 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752280AbbKPScX (ORCPT ); Mon, 16 Nov 2015 13:32:23 -0500 Date: Mon, 16 Nov 2015 13:32:21 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: SF Markus Elfring cc: linux-usb@vger.kernel.org, Greg Kroah-Hartman , , , Julia Lawall Subject: Re: [PATCH] USB-EHCI: Delete unnecessary checks before the function call "dma_pool_destroy" In-Reply-To: <564A1B00.8030507@users.sourceforge.net> Message-ID: 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: 718 Lines: 19 On Mon, 16 Nov 2015, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 16 Nov 2015 19:01:44 +0100 > > The dma_pool_destroy() function tests whether its argument is NULL > and then returns immediately. Thus the test around the calls is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Acked-by: Alan Stern -- 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/