summaryrefslogtreecommitdiff
path: root/net/sctp/sm_sideeffect.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2013-12-18 13:18:55 +0400
committerDavid S. Miller <davem@davemloft.net>2013-12-23 03:04:28 +0400
commit131334d09cf96d296006df143b024e339e74cd3e (patch)
tree004ca515eefe788b383653b6b3916516ee598dfd /net/sctp/sm_sideeffect.c
parentc92d5491a6d9774c5fb863512e93f1f86aa083ad (diff)
downloadlinux-131334d09cf96d296006df143b024e339e74cd3e.tar.xz
sctp: remove casting from function calls through ops structure
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>
Diffstat (limited to 'net/sctp/sm_sideeffect.c')
-rw-r--r--net/sctp/sm_sideeffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 02b7ad1ff467..2821dcbbe070 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -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,