Skip to content

Commit

Permalink
fixes typo port_managment_error -> port_management_error
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Salmon <[email protected]>
  • Loading branch information
Geoff Salmon authored and richardcochran committed Feb 6, 2013
1 parent 89562f0 commit d5af419
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
case TRANSPARENT_CLOCK_DEFAULT_DATA_SET:
case PRIMARY_DOMAIN:
pid = port_identity(p);
if (port_managment_error(pid, p, msg, NOT_SUPPORTED))
if (port_management_error(pid, p, msg, NOT_SUPPORTED))
pr_err("failed to send management error status");
break;
default:
Expand Down
8 changes: 4 additions & 4 deletions port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
return 0;
break;
case SET:
if (port_managment_error(p->portIdentity, ingress, msg,
if (port_management_error(p->portIdentity, ingress, msg,
NOT_SUPPORTED))
pr_err("port %hu: management error failed", portnum(p));
break;
Expand All @@ -1717,7 +1717,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
case TRANSPARENT_CLOCK_PORT_DATA_SET:
case DELAY_MECHANISM:
case LOG_MIN_PDELAY_REQ_INTERVAL:
if (port_managment_error(p->portIdentity, ingress, msg,
if (port_management_error(p->portIdentity, ingress, msg,
NOT_SUPPORTED))
pr_err("port %hu: management error failed", portnum(p));
break;
Expand All @@ -1727,8 +1727,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
return 0;
}

int port_managment_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id)
int port_management_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id)
{
struct ptp_message *msg;
struct management_tlv *mgt;
Expand Down
4 changes: 2 additions & 2 deletions port.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg);
* @param error_id One of the management error ID values.
* @return Zero on success, non-zero otherwise.
*/
int port_managment_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id);
int port_management_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id);

/**
* Allocate a reply to a management message.
Expand Down

0 comments on commit d5af419

Please sign in to comment.