diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-17 14:05:27 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-18 00:52:34 +0100 |
commit | bb66f2dc197d9cf1daaa82609302204d71c70389 (patch) | |
tree | a378b671b17c40ef6c76b390283485b799c8297f /sound/soc/omap | |
parent | ASoC: omap: enable sound support on n900 on devicetree-based boot (diff) | |
download | linux-bb66f2dc197d9cf1daaa82609302204d71c70389.tar.xz linux-bb66f2dc197d9cf1daaa82609302204d71c70389.zip |
ASoC: omap-mcbsp: Deletion of an unnecessary check before the function call "kfree"
The kfree() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/mcbsp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c index 86c75384c3c8..68a125205375 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); } /* |