[PATCH] kfree cleanup: misc remaining drivers
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/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org> Acked-by: Roland Dreier <rolandd@cisco.com> Acked-by: Pierre Ossman <drzeus@drzeus.cx> Acked-by: Jean Delvare <khali@linux-fr.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Acked-by: Len Brown <len.brown@intel.com> Acked-by: "Antonino A. Daplas" <adaplas@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
2ea7533060
commit
6044ec8882
@@ -1602,8 +1602,7 @@ static void __devexit wbsd_release_dma(struct wbsd_host* host)
|
||||
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);
|
||||
|
||||
|
Reference in New Issue
Block a user