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
This commit is contained in:
@@ -429,6 +429,7 @@ static enum ipa_client_type
|
|||||||
return ipa_client_type;
|
return ipa_client_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if IPA_ETH_API_VER < 2
|
||||||
static struct ipa_eth_client_pipe_info
|
static struct ipa_eth_client_pipe_info
|
||||||
*ipa_eth_get_pipe_from_hdl(ipa_eth_hdl_t hdl)
|
*ipa_eth_get_pipe_from_hdl(ipa_eth_hdl_t hdl)
|
||||||
{
|
{
|
||||||
@@ -440,6 +441,7 @@ static struct ipa_eth_client_pipe_info
|
|||||||
|
|
||||||
return pipe;
|
return pipe;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int ipa_eth_client_connect_pipe(
|
static int ipa_eth_client_connect_pipe(
|
||||||
|
@@ -926,7 +926,7 @@ static int ipa_get_eth_inst_stats(unsigned long arg)
|
|||||||
IPA_CLIENT_AQC_ETHERNET_CONS;
|
IPA_CLIENT_AQC_ETHERNET_CONS;
|
||||||
#if IPA_ETH_API_VER >= 2
|
#if IPA_ETH_API_VER >= 2
|
||||||
/* Get the client pipe info[0] from the allocation info context only if it is NTN3 */
|
/* 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 =
|
tx_instance_ptr_local->tx_client =
|
||||||
ipa_lnx_agent_ctx.alloc_info.eth_inst_info[
|
ipa_lnx_agent_ctx.alloc_info.eth_inst_info[
|
||||||
i].pipes_client_type[0];
|
i].pipes_client_type[0];
|
||||||
@@ -1025,7 +1025,7 @@ static int ipa_get_eth_inst_stats(unsigned long arg)
|
|||||||
IPA_CLIENT_AQC_ETHERNET_PROD;
|
IPA_CLIENT_AQC_ETHERNET_PROD;
|
||||||
#if IPA_ETH_API_VER >= 2
|
#if IPA_ETH_API_VER >= 2
|
||||||
/* Get the client pipe info[1] from the allocation info context only if it is NTN3 */
|
/* 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 =
|
rx_instance_ptr_local->rx_client =
|
||||||
ipa_lnx_agent_ctx.alloc_info.eth_inst_info[
|
ipa_lnx_agent_ctx.alloc_info.eth_inst_info[
|
||||||
i].pipes_client_type[1];
|
i].pipes_client_type[1];
|
||||||
|
Reference in New Issue
Block a user