[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_ipv4.c b/nss_ipv4.c
index 413c689..5c7b98b 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -359,8 +359,7 @@
nss_info("%p: IPv4 supported connections: %d\n", nss_ctx, nss_ipv4_conn_cfg);
nss_ipv4_msg_init(&nim, NSS_IPV4_RX_INTERFACE, NSS_IPV4_TX_CONN_CFG_RULE_MSG,
- sizeof(struct nss_ipv4_rule_conn_cfg_msg),
- (nss_ipv4_msg_callback_t *)nss_ipv4_conn_cfg_callback, NULL);
+ sizeof(struct nss_ipv4_rule_conn_cfg_msg), nss_ipv4_conn_cfg_callback, NULL);
nirccm = &nim.msg.rule_conn_cfg;
nirccm->num_conn = htonl(nss_ipv4_conn_cfg);
@@ -478,7 +477,7 @@
* Initialize IPv4 message.
*/
void nss_ipv4_msg_init(struct nss_ipv4_msg *nim, uint16_t if_num, uint32_t type, uint32_t len,
- nss_ipv4_msg_callback_t *cb, void *app_data)
+ nss_ipv4_msg_callback_t cb, void *app_data)
{
nss_cmn_msg_init(&nim->cm, if_num, type, len, (void *)cb, app_data);
}