Remove unnecessary check for NULL pointer in cmm.c. Signed-off-by: Ernesto Ramos <ernesto@xxxxxx> --- drivers/staging/tidspbridge/pmgr/cmm.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/tidspbridge/pmgr/cmm.c b/drivers/staging/tidspbridge/pmgr/cmm.c index 8e808d9..874ed64 100644 --- a/drivers/staging/tidspbridge/pmgr/cmm.c +++ b/drivers/staging/tidspbridge/pmgr/cmm.c @@ -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; } /* -- 1.5.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html