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

Remove unnecessary check for NULL pointer in cmm.c.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Ernesto Ramos 2010-07-28 09:40:49 -05:00 committed by Greg Kroah-Hartman
parent 3fee78f6be
commit 3448c5481c
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}
/*