phc2sys: break long lines in the PTP management message accessors
In preparation of moving these functions to pmc_common.c, break the lines to a maximum of 80 characters, otherwise checkpatch will complain. Signed-off-by: Vladimir Oltean <olteanv@gmail.com>master
parent
8001bd3c4e
commit
2f8470980d
|
@ -821,13 +821,17 @@ static int is_msg_mgt(struct ptp_message *msg)
|
||||||
|
|
||||||
static int get_mgt_id(struct ptp_message *msg)
|
static int get_mgt_id(struct ptp_message *msg)
|
||||||
{
|
{
|
||||||
struct management_tlv *mgt = (struct management_tlv *) msg->management.suffix;
|
struct management_tlv *mgt;
|
||||||
|
|
||||||
|
mgt = (struct management_tlv *) msg->management.suffix;
|
||||||
return mgt->id;
|
return mgt->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *get_mgt_data(struct ptp_message *msg)
|
static void *get_mgt_data(struct ptp_message *msg)
|
||||||
{
|
{
|
||||||
struct management_tlv *mgt = (struct management_tlv *) msg->management.suffix;
|
struct management_tlv *mgt;
|
||||||
|
|
||||||
|
mgt = (struct management_tlv *) msg->management.suffix;
|
||||||
return mgt->data;
|
return mgt->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue