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
Vladimir Oltean 2020-08-30 00:34:01 +03:00
parent 8001bd3c4e
commit 2f8470980d
1 changed files with 6 additions and 2 deletions

View File

@ -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;
} }