diff mbox

[2/5] DSPBRIDGE: Remove unnecessary check for NULL pointer in cmm.c

Message ID 1277158034-21843-2-git-send-email-ernesto@ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ramos Falcon, Ernesto June 21, 2010, 10:07 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/dsp/bridge/pmgr/cmm.c b/drivers/dsp/bridge/pmgr/cmm.c
index 7aa4ca4..1134193 100644
--- a/drivers/dsp/bridge/pmgr/cmm.c
+++ b/drivers/dsp/bridge/pmgr/cmm.c
@@ -996,10 +996,7 @@  int cmm_xlator_delete(struct cmm_xlatorobject *xlator, bool bForce)
 
 	DBC_REQUIRE(refs > 0);
 
-	if (xlator_obj)
-		kfree(xlator_obj);
-	else
-		status = -EFAULT;
+	kfree(xlator_obj);
 
 	return status;
 }