From: Manu Abraham <manu@linuxtv.org>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
linux-dvb-maintainer@linuxtv.org, Manu Abraham <manu@kromtek.com>,
Emard <emard@softhome.net>,
Marko Kohtala <marko.kohtala@luukku.com>,
Wilson Michaels <wilsonmichaels@earthlink.net>,
Andreas Oberritter <obi@linuxtv.org>,
Kirk Lapray <kirk_lapray@bigfoot.com>,
Mauro Carvalho Chehab <mchehab@brturbo.com.br>,
video4linux-list@redhat.com,
Takeo Takahashi <takahashi.takeo@renesas.com>,
Ralph Metzler <rjkm@thp.uni-koeln.de>,
Gerd Knorr <kraxel@bytesex.org>, Bill Dirks <bdirks@pacbell.net>,
Wolfgang Scherr <scherr@net4you.at>, Alan Cox <alan@redhat.com>,
Ronald Bultje <rbultje@ronald.bitfreak.net>,
Serguei Miridonov <mirsev@cicese.mx>,
Johannes Stezenbach <js@linuxtv.org>
Subject: Re: [PATCH 08/14] Big kfree NULL check cleanup - drivers/media
Date: Fri, 14 Oct 2005 21:52:47 +0400 [thread overview]
Message-ID: <434FF06F.2060202@linuxtv.org> (raw)
In-Reply-To: <200510132128.12616.jesper.juhl@gmail.com>
Jesper Juhl wrote:
>This is the drivers/media/ part of the big kfree cleanup patch.
>
>Remove pointless checks for NULL prior to calling kfree() in drivers/media/.
>
>
>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 <jesper.juhl@gmail.com>
>---
>
>Please see the initial announcement mail on LKML with subject
>"[PATCH 00/14] Big kfree NULL check cleanup"
>for additional details.
>
>
>
>
>--- linux-2.6.14-rc4-orig/drivers/media/dvb/bt8xx/dst.c 2005-10-11 22:41:09.000000000 +0200
>+++ linux-2.6.14-rc4/drivers/media/dvb/bt8xx/dst.c 2005-10-13 10:30:01.000000000 +0200
>@@ -1331,9 +1331,7 @@ struct dst_state *dst_attach(struct dst_
> {
> /* check if the ASIC is there */
> if (dst_probe(state) < 0) {
>- if (state)
>- kfree(state);
>-
>+ kfree(state);
> return NULL;
> }
> /* determine settings based on type */
>@@ -1349,9 +1347,7 @@ struct dst_state *dst_attach(struct dst_
> break;
> default:
> dprintk(verbose, DST_ERROR, 1, "unknown DST type. please report to the LinuxTV.org DVB mailinglist.");
>- if (state)
>- kfree(state);
>-
>+ kfree(state);
> return NULL;
> }
>
>
>
Acked-by : Manu Abraham <manu@linuxtv.org>
Thanks,
Manu
next prev parent reply other threads:[~2005-10-14 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 19:28 [PATCH 08/14] Big kfree NULL check cleanup - drivers/media Jesper Juhl
2005-10-14 17:52 ` Manu Abraham [this message]
2005-10-14 21:56 ` Andreas Oberritter
2005-10-15 3:21 ` Wilson Michaels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434FF06F.2060202@linuxtv.org \
--to=manu@linuxtv.org \
--cc=akpm@osdl.org \
--cc=alan@redhat.com \
--cc=bdirks@pacbell.net \
--cc=emard@softhome.net \
--cc=jesper.juhl@gmail.com \
--cc=js@linuxtv.org \
--cc=kirk_lapray@bigfoot.com \
--cc=kraxel@bytesex.org \
--cc=linux-dvb-maintainer@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manu@kromtek.com \
--cc=marko.kohtala@luukku.com \
--cc=mchehab@brturbo.com.br \
--cc=mirsev@cicese.mx \
--cc=obi@linuxtv.org \
--cc=rbultje@ronald.bitfreak.net \
--cc=rjkm@thp.uni-koeln.de \
--cc=scherr@net4you.at \
--cc=takahashi.takeo@renesas.com \
--cc=video4linux-list@redhat.com \
--cc=wilsonmichaels@earthlink.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox