提交 3448c548 编写于 作者: E Ernesto Ramos 提交者: Greg Kroah-Hartman

staging:ti dspbridge: remove unnecessary check for NULL pointer in cmm.c

Remove unnecessary check for NULL pointer in cmm.c.
Signed-off-by: NErnesto Ramos <ernesto@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3fee78f6
......@@ -992,16 +992,12 @@ int cmm_xlator_create(struct cmm_xlatorobject **xlator,
int cmm_xlator_delete(struct cmm_xlatorobject *xlator, bool force)
{
struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator;
int status = 0;
DBC_REQUIRE(refs > 0);
if (xlator_obj)
kfree(xlator_obj);
else
status = -EFAULT;
kfree(xlator_obj);
return status;
return 0;
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册