* [PATCH V2] ASoC: mcbsp: remove unnecessary null test before kfree
@ 2014-06-26 19:47 Fabian Frederick
2014-06-27 6:01 ` Jarkko Nikula
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2014-06-26 19:47 UTC (permalink / raw)
To: alsa-devel; +Cc: Fabian Frederick, Peter Ujfalusi, Jarkko Nikula
Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
V2: replace subject "sound/soc/omap/mcbsp.c" by "ASoC: mcbsp:"
(suggested by Peter Ujfalusi)
sound/soc/omap/mcbsp.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index 86c7538..68a1252 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -621,8 +621,7 @@ void omap_mcbsp_free(struct omap_mcbsp *mcbsp)
mcbsp->reg_cache = NULL;
spin_unlock(&mcbsp->lock);
- if (reg_cache)
- kfree(reg_cache);
+ kfree(reg_cache);
}
/*
--
1.8.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] ASoC: mcbsp: remove unnecessary null test before kfree
2014-06-26 19:47 [PATCH V2] ASoC: mcbsp: remove unnecessary null test before kfree Fabian Frederick
@ 2014-06-27 6:01 ` Jarkko Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Nikula @ 2014-06-27 6:01 UTC (permalink / raw)
To: Fabian Frederick; +Cc: Peter Ujfalusi, alsa-devel
On Thu, Jun 26, 2014 at 09:47:43PM +0200, Fabian Frederick wrote:
> Fix checkpatch warning:
> WARNING: kfree(NULL) is safe this check is probably not required
>
> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
> Cc: Jarkko Nikula <jarkko.nikula@bitmer.com>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> V2: replace subject "sound/soc/omap/mcbsp.c" by "ASoC: mcbsp:"
> (suggested by Peter Ujfalusi)
>
> sound/soc/omap/mcbsp.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
I noticed ASoC maintainers Mark Brown <broonie@kernel.org> and Liam
Girdwood <lgirdwood@gmail.com> were not CC'ed so in case this patch gets buried
under list traffic and if you won't see this patch applied in a ~1 week, please
resend with them CC'ed.
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-27 6:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 19:47 [PATCH V2] ASoC: mcbsp: remove unnecessary null test before kfree Fabian Frederick
2014-06-27 6:01 ` Jarkko Nikula
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.