Skip to content

Commit

Permalink
sctp: fix typo sctp_ulpevent_nofity_peer_addr_change
Browse files Browse the repository at this point in the history
change typo in function name "nofity" to "notify"
sctp_ulpevent_nofity_peer_addr_change ->
sctp_ulpevent_notify_peer_addr_change

Signed-off-by: Jonas Falkevik <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
falkevik authored and davem330 committed May 27, 2020
1 parent b3ae245 commit 50ce4c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/net/sctp/ulpevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct sctp_ulpevent *sctp_ulpevent_make_assoc_change(
struct sctp_chunk *chunk,
gfp_t gfp);

void sctp_ulpevent_nofity_peer_addr_change(struct sctp_transport *transport,
void sctp_ulpevent_notify_peer_addr_change(struct sctp_transport *transport,
int state, int error);

struct sctp_ulpevent *sctp_ulpevent_make_remote_error(
Expand Down
8 changes: 4 additions & 4 deletions net/sctp/associola.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ void sctp_assoc_set_primary(struct sctp_association *asoc,
changeover = 1 ;

asoc->peer.primary_path = transport;
sctp_ulpevent_nofity_peer_addr_change(transport,
sctp_ulpevent_notify_peer_addr_change(transport,
SCTP_ADDR_MADE_PRIM, 0);

/* Set a default msg_name for events. */
Expand Down Expand Up @@ -574,7 +574,7 @@ void sctp_assoc_rm_peer(struct sctp_association *asoc,

asoc->peer.transport_count--;

sctp_ulpevent_nofity_peer_addr_change(peer, SCTP_ADDR_REMOVED, 0);
sctp_ulpevent_notify_peer_addr_change(peer, SCTP_ADDR_REMOVED, 0);
sctp_transport_free(peer);
}

Expand Down Expand Up @@ -714,7 +714,7 @@ struct sctp_transport *sctp_assoc_add_peer(struct sctp_association *asoc,
list_add_tail_rcu(&peer->transports, &asoc->peer.transport_addr_list);
asoc->peer.transport_count++;

sctp_ulpevent_nofity_peer_addr_change(peer, SCTP_ADDR_ADDED, 0);
sctp_ulpevent_notify_peer_addr_change(peer, SCTP_ADDR_ADDED, 0);

/* If we do not yet have a primary path, set one. */
if (!asoc->peer.primary_path) {
Expand Down Expand Up @@ -840,7 +840,7 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
* to the user.
*/
if (ulp_notify)
sctp_ulpevent_nofity_peer_addr_change(transport,
sctp_ulpevent_notify_peer_addr_change(transport,
spc_state, error);

/* Select new active and retran paths. */
Expand Down
2 changes: 1 addition & 1 deletion net/sctp/ulpevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static struct sctp_ulpevent *sctp_ulpevent_make_peer_addr_change(
return NULL;
}

void sctp_ulpevent_nofity_peer_addr_change(struct sctp_transport *transport,
void sctp_ulpevent_notify_peer_addr_change(struct sctp_transport *transport,
int state, int error)
{
struct sctp_association *asoc = transport->asoc;
Expand Down

0 comments on commit 50ce4c0

Please sign in to comment.