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 <olte...@gmail.com>
---
Changes in v3:
- Split from previous patch "phc2sys: break out pmc code into
  pmc_common.c".

 phc2sys.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/phc2sys.c b/phc2sys.c
index a36cbe071d7d..9af93c62b6a9 100644
--- a/phc2sys.c
+++ b/phc2sys.c
@@ -821,13 +821,17 @@ static int is_msg_mgt(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;
 }
 
 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;
 }
 
-- 
2.25.1



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to