[qca-nss-drv] Fix invalid pointer typecast for callback_t in msg_init APIs
msg_init() APIs don't need a typecast for callbacks. Fix the invalid typecast
for all the callbacks in msg_init.
Change-Id: I58fcdba29acf0848ec4cdc103bfcd14612f10b40
Signed-off-by: Sundarajan Srinivasan <sundaraj@codeaurora.org>
diff --git a/nss_ipv6.c b/nss_ipv6.c
index 7ab858d..4f5bf5c 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -358,7 +358,7 @@
nss_info("%p: IPv6 supported connections: %d\n", nss_ctx, nss_ipv6_conn_cfg);
nss_ipv6_msg_init(&nim, NSS_IPV6_RX_INTERFACE, NSS_IPV6_TX_CONN_CFG_RULE_MSG,
- sizeof(struct nss_ipv6_rule_conn_cfg_msg), (nss_ipv6_msg_callback_t *)nss_ipv6_conn_cfg_callback, NULL);
+ sizeof(struct nss_ipv6_rule_conn_cfg_msg), nss_ipv6_conn_cfg_callback, NULL);
nirccm = &nim.msg.rule_conn_cfg;
nirccm->num_conn = htonl(nss_ipv6_conn_cfg);
@@ -475,7 +475,7 @@
* Initialize IPv6 message.
*/
void nss_ipv6_msg_init(struct nss_ipv6_msg *nim, uint16_t if_num, uint32_t type, uint32_t len,
- nss_ipv6_msg_callback_t *cb, void *app_data)
+ nss_ipv6_msg_callback_t cb, void *app_data)
{
nss_cmn_msg_init(&nim->cm, if_num, type, len, (void *)cb, app_data);
}