summaryrefslogtreecommitdiff
path: root/drivers/staging/cxt1e1/linux.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-27 09:36:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-30 18:48:41 -0700
commitbcf7bea44e50e85e8401f8667ecc8c79a3708e58 (patch)
treeaf3aa3e8d027f661a2d58ace136037df9ae5b50c /drivers/staging/cxt1e1/linux.c
parent8654cda06c74a29ed956db8bd29ecbaf3cf9b464 (diff)
staging: cxt1e1: linux.c: Return negative error codes
Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/cxt1e1/linux.c')
-rw-r--r--drivers/staging/cxt1e1/linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c
index 598e6ba96955..9b483739881a 100644
--- a/drivers/staging/cxt1e1/linux.c
+++ b/drivers/staging/cxt1e1/linux.c
@@ -230,7 +230,7 @@ c4_wq_port_init (mpi_t *pi)
__func__, name, pi->portnum); /* RLD DEBUG */
#endif
if (!(pi->wq_port = create_singlethread_workqueue (name)))
- return ENOMEM;
+ return -ENOMEM;
return 0; /* success */
}