]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_sr.c
*: Do not cast to the same type
[mirror_frr.git] / ospfd / ospf_sr.c
index b5a54a0bc420aada919bda97372118cb99bc0ad9..7a786ba7abbc9e551375f2344f0f383c78eab0a5 100644 (file)
@@ -1035,7 +1035,7 @@ void ospf_sr_ri_lsa_update(struct ospf_lsa *lsa)
 {
        struct sr_node *srn;
        struct tlv_header *tlvh;
-       struct lsa_header *lsah = (struct lsa_header *)lsa->data;
+       struct lsa_header *lsah = lsa->data;
        struct ri_sr_tlv_sid_label_range *ri_srgb;
        struct ri_sr_tlv_sr_algorithm *algo;
        struct sr_srgb srgb;
@@ -1156,7 +1156,7 @@ void ospf_sr_ri_lsa_update(struct ospf_lsa *lsa)
 void ospf_sr_ri_lsa_delete(struct ospf_lsa *lsa)
 {
        struct sr_node *srn;
-       struct lsa_header *lsah = (struct lsa_header *)lsa->data;
+       struct lsa_header *lsah = lsa->data;
 
        if (IS_DEBUG_OSPF_SR)
                zlog_debug("SR (%s): Remove SR node %s from lsa_id 4.0.0.%u",
@@ -1198,7 +1198,7 @@ void ospf_sr_ext_link_lsa_update(struct ospf_lsa *lsa)
 {
        struct sr_node *srn;
        struct tlv_header *tlvh;
-       struct lsa_header *lsah = (struct lsa_header *)lsa->data;
+       struct lsa_header *lsah = lsa->data;
        struct sr_link *srl;
 
        uint16_t length, sum;
@@ -1308,7 +1308,7 @@ void ospf_sr_ext_prefix_lsa_update(struct ospf_lsa *lsa)
 {
        struct sr_node *srn;
        struct tlv_header *tlvh;
-       struct lsa_header *lsah = (struct lsa_header *)lsa->data;
+       struct lsa_header *lsah = lsa->data;
        struct sr_prefix *srp;
 
        uint16_t length, sum;