Bläddra i källkod

qcacld-3.0: Fix build error at SDX24.le.1.7 platform

Fix 'for' loop initial declarations are only allowed in C99 or C11 mode
build error at SDX24.le.1.7 platform.

Change-Id: I08cc4ee7558f0b390a8c848828272497f517ef08
CRs-Fixed: 2365266
Chaoli Zhou 6 år sedan
förälder
incheckning
50bc9ad9e8
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      core/dp/txrx/ol_txrx_ipa.c

+ 3 - 1
core/dp/txrx/ol_txrx_ipa.c

@@ -306,10 +306,12 @@ static inline void ol_txrx_setup_mcc_sys_pipes(
 		qdf_ipa_sys_connect_params_t *sys_in,
 		qdf_ipa_wdi_conn_in_params_t *pipe_in)
 {
+	int i = 0;
+
 	/* Setup MCC sys pipe */
 	QDF_IPA_WDI_CONN_IN_PARAMS_NUM_SYS_PIPE_NEEDED(pipe_in) =
 			OL_TXRX_IPA_MAX_IFACE;
-	for (int i = 0; i < OL_TXRX_IPA_MAX_IFACE; i++)
+	for (i = 0; i < OL_TXRX_IPA_MAX_IFACE; i++)
 		memcpy(&QDF_IPA_WDI_CONN_IN_PARAMS_SYS_IN(pipe_in)[i],
 		       &sys_in[i], sizeof(qdf_ipa_sys_connect_params_t));
 }