From 8998807f699d70be3ac137094550533226f32db8 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 8 May 2022 16:07:42 +0300 Subject: *: Avoid casting to the same type as on the left Just not necessary. Signed-off-by: Donatas Abraitis --- pceplib/pcep_msg_tlvs_encoding.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pceplib') diff --git a/pceplib/pcep_msg_tlvs_encoding.c b/pceplib/pcep_msg_tlvs_encoding.c index c46e859c4..b5a65d457 100644 --- a/pceplib/pcep_msg_tlvs_encoding.c +++ b/pceplib/pcep_msg_tlvs_encoding.c @@ -1185,8 +1185,7 @@ pcep_decode_tlv_pol_id(struct pcep_object_tlv_header *tlv_hdr, return (struct pcep_object_tlv_header *)ipv4; } else { ipv4->is_ipv4 = false; - struct pcep_object_tlv_srpag_pol_id *ipv6 = - (struct pcep_object_tlv_srpag_pol_id *)ipv4; + struct pcep_object_tlv_srpag_pol_id *ipv6 = ipv4; ipv6->color = ntohl(uint32_ptr[0]); decode_ipv6(&uint32_ptr[1], &ipv6->end_point.ipv6); return (struct pcep_object_tlv_header *)ipv6; -- cgit v1.2.3