From d352fb2411d4833757f80881a1152ee3adddb6b5 Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Thu, 23 Feb 2023 22:46:16 +0800 Subject: [PATCH] ble_mesh: fix gcc-12 compile errors --- .../bt/esp_ble_mesh/btc/btc_ble_mesh_health_model.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/bt/esp_ble_mesh/btc/btc_ble_mesh_health_model.c b/components/bt/esp_ble_mesh/btc/btc_ble_mesh_health_model.c index 8be7fdee36..62a9b7fd52 100644 --- a/components/bt/esp_ble_mesh/btc/btc_ble_mesh_health_model.c +++ b/components/bt/esp_ble_mesh/btc/btc_ble_mesh_health_model.c @@ -80,7 +80,7 @@ void btc_ble_mesh_health_client_arg_deep_free(btc_msg_t *msg) { btc_ble_mesh_health_client_args_t *arg = NULL; - if (!msg || !msg->arg) { + if (!msg) { BT_ERR("%s, Invalid parameter", __func__); return; } @@ -180,7 +180,7 @@ static void btc_ble_mesh_health_client_free_req_data(btc_msg_t *msg) { esp_ble_mesh_health_client_cb_param_t *arg = NULL; - if (!msg || !msg->arg) { + if (!msg) { BT_ERR("%s, Invalid parameter", __func__); return; } @@ -393,7 +393,7 @@ void btc_ble_mesh_health_client_call_handler(btc_msg_t *msg) btc_ble_mesh_health_client_args_t *arg = NULL; esp_ble_mesh_health_client_cb_param_t cb = {0}; - if (!msg || !msg->arg) { + if (!msg) { BT_ERR("%s, Invalid parameter", __func__); return; } @@ -433,7 +433,7 @@ void btc_ble_mesh_health_client_cb_handler(btc_msg_t *msg) { esp_ble_mesh_health_client_cb_param_t *param = NULL; - if (!msg || !msg->arg) { + if (!msg) { BT_ERR("%s, Invalid parameter", __func__); return; }