diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index 668bec7213d5..a807129c7b5a 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -415,13 +415,13 @@ static int task_get_unused_fd_flags(struct binder_proc *proc, int flags) else __clear_close_on_exec(fd, fdt); files->next_fd = fd + 1; -#if 1 + /* Sanity check */ if (fdt->fd[fd] != NULL) { pr_warn("get_unused_fd: slot %d not NULL!\n", fd); fdt->fd[fd] = NULL; } -#endif + error = fd; out: