Commit cec97e15 authored by Hari Kanigeri's avatar Hari Kanigeri

removed bug on that is not needed

removed bug that is not needed.
Signed-off-by: default avatarHari Kanigeri <h-kangieri2@ti.com>
parent d335b8ec
......@@ -159,9 +159,9 @@ int proc4430_destroy(void)
* delete them.
*/
for (i = 0; i < MULTIPROC_MAXPROCESSORS; i++) {
BUG_ON(proc4430_state.proc_handles[i] == NULL);
if (proc4430_state.proc_handles[i] != NULL)
proc4430_delete(&(proc4430_state.proc_handles[i]));
if (proc4430_state.proc_handles[i] == NULL)
continue;
proc4430_delete(&(proc4430_state.proc_handles[i]));
}
/* Check if the gate_handle was created internally. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment