summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@codeaurora.org>2017-03-29 17:55:55 -0700
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-31 19:11:06 -0700
commitdbe1c0e257de466e70c32f84f3521ee7ba5f06fb (patch)
tree7ad39da6252e27889de1b1bd5efe680664518633
parent9021aaf66843c8cec290dd36dc5646d1c58a9ad4 (diff)
qcacmn: Return status from qdf_create_work
qdf_create_work is not returning any status hence modify it to return proper QDF status to know proper status of work creation. Change-Id: I8fc84933cc85ba628363638d7567b083ecbf4f34 CRs-Fixed: 2026441
-rw-r--r--qdf/inc/qdf_defer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/qdf/inc/qdf_defer.h b/qdf/inc/qdf_defer.h
index 5e2f6ffa3b2a..c8a5fe10f80c 100644
--- a/qdf/inc/qdf_defer.h
+++ b/qdf/inc/qdf_defer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -104,12 +104,13 @@ static inline void qdf_destroy_bh(qdf_handle_t hdl, qdf_bh_t *bh)
* @work: pointer to work
* @func: deferred function to run at bottom half non-interrupt context.
* @arg: argument for the deferred function
- * Return: none
+ *
+ * Return: QDF_STATUS
*/
-static inline void qdf_create_work(qdf_handle_t hdl, qdf_work_t *work,
+static inline QDF_STATUS qdf_create_work(qdf_handle_t hdl, qdf_work_t *work,
qdf_defer_fn_t func, void *arg)
{
- __qdf_init_work(hdl, work, func, arg);
+ return __qdf_init_work(hdl, work, func, arg);
}
/**