Skip to content

Commit

Permalink
[SCTP]: Remove an unused parameter from sctp_cmd_hb_timer_update
Browse files Browse the repository at this point in the history
The 'asoc' parameter to sctp_cmd_hb_timer_update() is unused, and
we can remove it.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gui Jianfeng authored and David S. Miller committed Apr 13, 2008
1 parent 9dbc15f commit 765ff02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sctp/sm_sideeffect.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ static void sctp_cmd_t3_rtx_timers_stop(sctp_cmd_seq_t *cmds,

/* Helper function to update the heartbeat timer. */
static void sctp_cmd_hb_timer_update(sctp_cmd_seq_t *cmds,
struct sctp_association *asoc,
struct sctp_transport *t)
{
/* Update the heartbeat timer. */
Expand Down Expand Up @@ -1451,7 +1450,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,

case SCTP_CMD_HB_TIMER_UPDATE:
t = cmd->obj.transport;
sctp_cmd_hb_timer_update(commands, asoc, t);
sctp_cmd_hb_timer_update(commands, t);
break;

case SCTP_CMD_HB_TIMERS_STOP:
Expand Down

0 comments on commit 765ff02

Please sign in to comment.