Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751118AbVJNEzE (ORCPT ); Fri, 14 Oct 2005 00:55:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751317AbVJNEzE (ORCPT ); Fri, 14 Oct 2005 00:55:04 -0400 Received: from [85.8.13.51] ([85.8.13.51]:26765 "EHLO smtp.drzeus.cx") by vger.kernel.org with ESMTP id S1751118AbVJNEzC (ORCPT ); Fri, 14 Oct 2005 00:55:02 -0400 Message-ID: <434F3A1E.7000403@drzeus.cx> Date: Fri, 14 Oct 2005 06:54:54 +0200 From: Pierre Ossman User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jesper Juhl CC: linux-kernel , Andrew Morton , Len Brown , iss_storagedev@hp.com, Jakub Jelinek , Frodo Looijaard , Jean Delvare , Bartlomiej Zolnierkiewicz , Jens Axboe , Roland Dreier , Sergio Rozanski Filho , Benjamin Herrenschmidt , Pierre Ossman , Carsten Gross , Greg Kroah-Hartman , David Hinds , Vinh Truong , Mark Douglas Corner , Michael Downey , Antonino Daplas , Ben Gardner Subject: Re: [PATCH 09/14] Big kfree NULL check cleanup - misc remaining drivers References: <200510132128.45171.jesper.juhl@gmail.com> In-Reply-To: <200510132128.45171.jesper.juhl@gmail.com> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 35 Jesper Juhl wrote: > This is the remaining misc drivers/ part of the big kfree cleanup patch. > > Remove pointless checks for NULL prior to calling kfree() in misc files in drivers/. > > > Sorry about the long Cc: list, but I wanted to make sure I included everyone > who's code I've changed with this patch. > > > Signed-off-by: Jesper Juhl > --- > > --- linux-2.6.14-rc4-orig/drivers/mmc/wbsd.c 2005-10-11 22:41:10.000000000 +0200 > +++ linux-2.6.14-rc4/drivers/mmc/wbsd.c 2005-10-12 15:43:04.000000000 +0200 > @@ -1595,8 +1595,7 @@ static void __devexit wbsd_release_dma(s > if (host->dma_addr) > dma_unmap_single(host->mmc->dev, host->dma_addr, WBSD_DMA_SIZE, > DMA_BIDIRECTIONAL); > - if (host->dma_buffer) > - kfree(host->dma_buffer); > + kfree(host->dma_buffer); > if (host->dma >= 0) > free_dma(host->dma); > Looks good. Thanks. Acked-by: Pierre Ossman - 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/