icnss2: Fix build issue when strict-prototypes is enabled

When strict-prototypes and format-insufficient-args are
enabled then icnss2 fails to build. Change prototype of
icnss_get_plat_priv() and remove extra arg from error log
in icnss_wlfw_wlan_mac_req_send_sync().

Change-Id: I81c7d90fa24b05d573a9ce47c0301d2798118182
CRs-Fixed: 3359853
This commit is contained in:
Rajesh Chauhan
2022-12-13 19:27:38 -08:00
parent 6660ad60be
commit ecb024f0d1
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ static void icnss_set_plat_priv(struct icnss_priv *priv)
penv = priv; penv = priv;
} }
static struct icnss_priv *icnss_get_plat_priv() static struct icnss_priv *icnss_get_plat_priv(void)
{ {
return penv; return penv;
} }

View File

@@ -917,7 +917,7 @@ int icnss_wlfw_wlan_mac_req_send_sync(struct icnss_priv *priv,
} }
if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { if (resp.resp.result != QMI_RESULT_SUCCESS_V01) {
icnss_pr_err("WLAN mac req failed, result: %d, err: %d\n", icnss_pr_err("WLAN mac req failed, result: %d\n",
resp.resp.result); resp.resp.result);
ret = -resp.resp.result; ret = -resp.resp.result;
} }