diff options
author | Ernesto Ramos <ernesto@ti.com> | 2010-07-28 09:40:49 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-28 08:22:04 -0700 |
commit | 3448c5481cc4ae8bf19fae5002f0c4e43007da40 (patch) | |
tree | e239ffa30f7ae574ff77c10322df0e0af9c4f130 /drivers/staging/tidspbridge | |
parent | 3fee78f6becabffdcc46719e8bf13567cab73beb (diff) |
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>
Diffstat (limited to 'drivers/staging/tidspbridge')
-rw-r--r-- | 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 8e808d92fe3b..874ed646d6d2 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; } /* |