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>
This commit is contained in:
parent
ff7c532c3a
commit
bb66f2dc19
|
@ -621,8 +621,7 @@ void omap_mcbsp_free(struct omap_mcbsp *mcbsp)
|
||||||
mcbsp->reg_cache = NULL;
|
mcbsp->reg_cache = NULL;
|
||||||
spin_unlock(&mcbsp->lock);
|
spin_unlock(&mcbsp->lock);
|
||||||
|
|
||||||
if (reg_cache)
|
kfree(reg_cache);
|
||||||
kfree(reg_cache);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue