Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ernesto Ramos and committed by
Greg Kroah-Hartman
3448c548 3fee78f6

+2 -6
+2 -6
drivers/staging/tidspbridge/pmgr/cmm.c
··· 992 992 int cmm_xlator_delete(struct cmm_xlatorobject *xlator, bool force) 993 993 { 994 994 struct cmm_xlator *xlator_obj = (struct cmm_xlator *)xlator; 995 - int status = 0; 996 995 997 996 DBC_REQUIRE(refs > 0); 998 997 999 - if (xlator_obj) 1000 - kfree(xlator_obj); 1001 - else 1002 - status = -EFAULT; 998 + kfree(xlator_obj); 1003 999 1004 - return status; 1000 + return 0; 1005 1001 } 1006 1002 1007 1003 /*