projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fee78f
)
staging:ti dspbridge: remove unnecessary check for NULL pointer in cmm.c
author
Ernesto Ramos
<ernesto@ti.com>
Wed, 28 Jul 2010 14:40:49 +0000
(09:40 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 28 Jul 2010 15:22:04 +0000
(08:22 -0700)
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>
drivers/staging/tidspbridge/pmgr/cmm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/tidspbridge/pmgr/cmm.c
b/drivers/staging/tidspbridge/pmgr/cmm.c
index 8e808d92fe3bf23fa4697f81c0b6ce757d865964..874ed646d6d261957407453034b08004e140dfc7 100644
(file)
--- 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
;
}
/*