提交 d1f45e60 编写于 作者: M Markus Elfring 提交者: Takashi Iwai

sound: oss: Deletion of unnecessary checks before the function call "vfree"

The vfree() function performs also input parameter validation. Thus the test
around the call is not needed.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 57dca36e
......@@ -1228,7 +1228,7 @@ static void __exit cleanup_pss(void)
{
if(!pss_no_sound)
{
if(fw_load && pss_synth)
if (fw_load)
vfree(pss_synth);
if(pssmss)
unload_pss_mss(&cfg2);
......
......@@ -487,7 +487,7 @@ static int __init init_trix(void)
static void __exit cleanup_trix(void)
{
if (fw_load && trix_boot)
if (fw_load)
vfree(trix_boot);
if (sb)
unload_trix_sb(&cfg2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册