diff options
author | Jody McIntyre <scjody@steamballoon.com> | 2005-05-17 00:54:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-17 10:59:23 -0400 |
commit | 616b859fbd0e59707a24612d5b5fec791156c822 (patch) | |
tree | 2c58dbdfc262006886ac25a8d56c973b4f6a6772 /drivers/ieee1394/ohci1394.c | |
parent | 9ac485dc37b6336c5bf694f9933f43684fd1fd1e (diff) |
[PATCH] ieee1394: remove NULL checks for kfree
This patch removes redundant NULL pointer checks before kfree() in all of
drivers/ieee1394/
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Jody McIntyre <scjody@steamballoon.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ieee1394/ohci1394.c')
-rw-r--r-- | drivers/ieee1394/ohci1394.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index 6cb0b586c297..36e25ac823dc 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
@@ -2931,7 +2931,7 @@ static void free_dma_rcv_ctx(struct dma_rcv_ctx *d) | |||
2931 | kfree(d->prg_cpu); | 2931 | kfree(d->prg_cpu); |
2932 | kfree(d->prg_bus); | 2932 | kfree(d->prg_bus); |
2933 | } | 2933 | } |
2934 | if (d->spb) kfree(d->spb); | 2934 | kfree(d->spb); |
2935 | 2935 | ||
2936 | /* Mark this context as freed. */ | 2936 | /* Mark this context as freed. */ |
2937 | d->ohci = NULL; | 2937 | d->ohci = NULL; |