sctp: remove casting from function calls through ops structure
authorwangweidong <wangweidong1@huawei.com>
Wed, 18 Dec 2013 09:18:55 +0000 (17:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 23:04:28 +0000 (18:04 -0500)
remove the unnecessary cast.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c
net/sctp/sm_sideeffect.c

index 3f55823279d9d67bdda9e3628b86efeff7b740a2..3be70a41a5debdca8cfaecc57dbcdc1cc82979d5 100644 (file)
@@ -558,7 +558,7 @@ int sctp_packet_transmit(struct sctp_packet *packet)
         * Note: The works for IPv6 layer checks this bit too later
         * in transmission.  See IP6_ECN_flow_xmit().
         */
-       (*tp->af_specific->ecn_capable)(nskb->sk);
+       tp->af_specific->ecn_capable(nskb->sk);
 
        /* Set up the IP options.  */
        /* BUG: not implemented
@@ -593,7 +593,7 @@ int sctp_packet_transmit(struct sctp_packet *packet)
        pr_debug("***sctp_transmit_packet*** skb->len:%d\n", nskb->len);
 
        nskb->local_df = packet->ipfragok;
-       (*tp->af_specific->sctp_xmit)(nskb, tp);
+       tp->af_specific->sctp_xmit(nskb, tp);
 
 out:
        sctp_packet_reset(packet);
index 02b7ad1ff467cef05301f8f6818f1e5bba91b0e7..2821dcbbe0705f1b27821ca22d14fc4b70d8692d 100644 (file)
@@ -1115,7 +1115,7 @@ int sctp_do_sm(struct net *net, sctp_event_t event_type, sctp_subtype_t subtype,
        sctp_init_cmd_seq(&commands);
 
        debug_pre_sfn();
-       status = (*state_fn->fn)(net, ep, asoc, subtype, event_arg, &commands);
+       status = state_fn->fn(net, ep, asoc, subtype, event_arg, &commands);
        debug_post_sfn();
 
        error = sctp_side_effects(event_type, subtype, state,