aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl/spl-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/spl/spl-thread.c')
-rw-r--r--module/spl/spl-thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/spl/spl-thread.c b/module/spl/spl-thread.c
index c4977bcf2..07e3a1bff 100644
--- a/module/spl/spl-thread.c
+++ b/module/spl/spl-thread.c
@@ -155,8 +155,9 @@ spl_kthread_create(int (*func)(void *), void *data, const char namefmt[], ...)
if (PTR_ERR(tsk) == -ENOMEM)
continue;
return (NULL);
- } else
+ } else {
return (tsk);
+ }
} while (1);
}
EXPORT_SYMBOL(spl_kthread_create);