From d64b387fc1245b09bff2b8f82ea396593be68f7e Mon Sep 17 00:00:00 2001 From: Veerendra Kumar Kamsali Date: Sun, 18 Sep 2022 23:17:24 -0700 Subject: [PATCH] msm: ipa3: Changes to Remove extraneous parenthesis Adding changes to get rid of extraneous parenthesis and a ifdef flag to not compile if it is not required to avoid compilation failures or unused function errors. Change-Id: I6f337ff63aad4f5e5a7201d4ba0d47898f237e09 --- drivers/platform/msm/ipa/ipa_clients/ipa_eth.c | 2 ++ drivers/platform/msm/ipa/ipa_v3/ipa_stats.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/platform/msm/ipa/ipa_clients/ipa_eth.c b/drivers/platform/msm/ipa/ipa_clients/ipa_eth.c index 5eab5c9e64..eaf06a2428 100644 --- a/drivers/platform/msm/ipa/ipa_clients/ipa_eth.c +++ b/drivers/platform/msm/ipa/ipa_clients/ipa_eth.c @@ -429,6 +429,7 @@ static enum ipa_client_type return ipa_client_type; } +#if IPA_ETH_API_VER < 2 static struct ipa_eth_client_pipe_info *ipa_eth_get_pipe_from_hdl(ipa_eth_hdl_t hdl) { @@ -440,6 +441,7 @@ static struct ipa_eth_client_pipe_info return pipe; } +#endif static int ipa_eth_client_connect_pipe( diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_stats.c b/drivers/platform/msm/ipa/ipa_v3/ipa_stats.c index c5c7b2e753..a771ecd246 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_stats.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_stats.c @@ -926,7 +926,7 @@ static int ipa_get_eth_inst_stats(unsigned long arg) IPA_CLIENT_AQC_ETHERNET_CONS; #if IPA_ETH_API_VER >= 2 /* Get the client pipe info[0] from the allocation info context only if it is NTN3 */ - if ((instance_ptr->eth_mode == IPA_ETH_CLIENT_NTN3)) { + if (instance_ptr->eth_mode == IPA_ETH_CLIENT_NTN3) { tx_instance_ptr_local->tx_client = ipa_lnx_agent_ctx.alloc_info.eth_inst_info[ i].pipes_client_type[0]; @@ -1025,7 +1025,7 @@ static int ipa_get_eth_inst_stats(unsigned long arg) IPA_CLIENT_AQC_ETHERNET_PROD; #if IPA_ETH_API_VER >= 2 /* Get the client pipe info[1] from the allocation info context only if it is NTN3 */ - if ((instance_ptr->eth_mode == IPA_ETH_CLIENT_NTN3)) { + if (instance_ptr->eth_mode == IPA_ETH_CLIENT_NTN3) { rx_instance_ptr_local->rx_client = ipa_lnx_agent_ctx.alloc_info.eth_inst_info[ i].pipes_client_type[1];