aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-09-04 20:13:05 +0300
committerartefvck <artefvck07@gmail.com>2018-09-12 21:46:49 +0700
commitb17c84b2f251d5bf51d99a4fdf80e3f7c60666dc (patch)
treebac4a35b9c643b0802eb3c2cd6f6e8d54d81cc40
parent366350a4639db669137e94f32257a6ba4b0c0869 (diff)
downloadandroid_external_ant-wireless_ant_native-lineage-16.0.tar.gz
android_external_ant-wireless_ant_native-lineage-16.0.tar.bz2
android_external_ant-wireless_ant_native-lineage-16.0.zip
Remove unused parameters in vfs codelineage-16.0
Change-Id: I5084deff905ce30d3ba10f211e319bcd512ccd14
-rw-r--r--src/bt-vendor_vfs/ant_native_chardev.c15
-rw-r--r--src/bt-vendor_vfs/ant_rx_chardev.c2
-rw-r--r--src/vfs/ant_rx_chardev.c2
3 files changed, 10 insertions, 9 deletions
diff --git a/src/bt-vendor_vfs/ant_native_chardev.c b/src/bt-vendor_vfs/ant_native_chardev.c
index ec801a8..ac0a765 100644
--- a/src/bt-vendor_vfs/ant_native_chardev.c
+++ b/src/bt-vendor_vfs/ant_native_chardev.c
@@ -47,21 +47,22 @@
#include "bt_vendor_qcom.h" /* used by qualcomms code to call into libbt-vendor.so */
#include <cutils/properties.h> /* used by qualcomms additions for logging. */
// The following functions are dummy implementations of the callbacks required by libbt-vendor.
-static void vendor_fwcfg_cb(bt_vendor_op_result_t result) {
+static void vendor_fwcfg_cb(bt_vendor_op_result_t result __unused) {
}
-static void vendor_scocfg_cb(bt_vendor_op_result_t result) {
+static void vendor_scocfg_cb(bt_vendor_op_result_t result __unused) {
}
-static void vendor_lpm_vnd_cb(bt_vendor_op_result_t result) {
+static void vendor_lpm_vnd_cb(bt_vendor_op_result_t result __unused) {
}
-static void* vendor_alloc(int size) {
+static void* vendor_alloc(int size __unused) {
return NULL;
}
-static void vendor_dealloc(void *p_buf) {
+static void vendor_dealloc(void *p_buf __unused) {
}
-static uint8_t vendor_xmit_cb(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback) {
+static uint8_t vendor_xmit_cb(uint16_t opcode __unused, void *p_buf __unused,
+ tINT_CMD_CBACK p_cback __unused) {
return 0;
}
-static void vendor_epilog_cb(bt_vendor_op_result_t result) {
+static void vendor_epilog_cb(bt_vendor_op_result_t result __unused) {
}
// This struct is used to regsiter the dummy callbacks with libbt-vendor
diff --git a/src/bt-vendor_vfs/ant_rx_chardev.c b/src/bt-vendor_vfs/ant_rx_chardev.c
index 6336524..bbc7a79 100644
--- a/src/bt-vendor_vfs/ant_rx_chardev.c
+++ b/src/bt-vendor_vfs/ant_rx_chardev.c
@@ -94,7 +94,7 @@ ANT_BOOL areAllFlagsSet(short value, short flags)
* This thread is run occasionally as a detached thread in order to send a keepalive message to the
* chip.
*/
-void *fnKeepAliveThread(void *unused)
+void *fnKeepAliveThread()
{
ANT_DEBUG_V("Sending dummy keepalive message.");
ant_tx_message(sizeof(KEEPALIVE_MESG)/sizeof(ANT_U8), KEEPALIVE_MESG);
diff --git a/src/vfs/ant_rx_chardev.c b/src/vfs/ant_rx_chardev.c
index 3876119..b5a57a9 100644
--- a/src/vfs/ant_rx_chardev.c
+++ b/src/vfs/ant_rx_chardev.c
@@ -95,7 +95,7 @@ ANT_BOOL areAllFlagsSet(short value, short flags)
* This thread is run occasionally as a detached thread in order to send a keepalive message to the
* chip.
*/
-void *fnKeepAliveThread(void *unused)
+void *fnKeepAliveThread()
{
ANT_DEBUG_V("Sending dummy keepalive message.");
ant_tx_message(sizeof(KEEPALIVE_MESG)/sizeof(ANT_U8), KEEPALIVE_MESG);