diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:04 -0500 |
commit | 2ea7533060e361810c21b2f5ee02151c4dfb85d8 (patch) | |
tree | 9d8a5375c716879142dff583dfa6abddd79fefcc /drivers/media/dvb/frontends/l64781.c | |
parent | 17fd682e544556a2a829e94383239c029bb21c5e (diff) |
[PATCH] kfree cleanup: drivers/media
This is the drivers/media/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/media/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Johannes Stezenbach <js@linuxtv.org>
Cc: Michael Krufky <mkrufky@m1k.net>
Cc: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Acked-by : Manu Abraham <manu@linuxtv.org>
Acked-by: Andreas Oberritter <obi@linuxtv.org>
Acked-by: Wilson Michaels <wilsonmichaels@earthlink.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/l64781.c')
-rw-r--r-- | drivers/media/dvb/frontends/l64781.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/l64781.c b/drivers/media/dvb/frontends/l64781.c index faaad1ae8559..19b4bf7c21a7 100644 --- a/drivers/media/dvb/frontends/l64781.c +++ b/drivers/media/dvb/frontends/l64781.c | |||
@@ -559,7 +559,8 @@ struct dvb_frontend* l64781_attach(const struct l64781_config* config, | |||
559 | return &state->frontend; | 559 | return &state->frontend; |
560 | 560 | ||
561 | error: | 561 | error: |
562 | if (reg0x3e >= 0) l64781_writereg (state, 0x3e, reg0x3e); /* restore reg 0x3e */ | 562 | if (reg0x3e >= 0) |
563 | l64781_writereg (state, 0x3e, reg0x3e); /* restore reg 0x3e */ | ||
563 | kfree(state); | 564 | kfree(state); |
564 | return NULL; | 565 | return NULL; |
565 | } | 566 | } |