git: 2997ab002e0c - main - fbt: Remove handling for CTFv1

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 16:42:57 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=2997ab002e0c3430aff00c8b6f6b0c44c6707bd7

commit 2997ab002e0c3430aff00c8b6f6b0c44c6707bd7
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-02-23 14:58:35 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-02-23 16:41:22 +0000

    fbt: Remove handling for CTFv1
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 sys/cddl/dev/fbt/fbt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c
index 2137075e3831..5b1aeab3bafb 100644
--- a/sys/cddl/dev/fbt/fbt.c
+++ b/sys/cddl/dev/fbt/fbt.c
@@ -446,8 +446,7 @@ fbt_get_ctt_size(uint8_t version, const ctf_type_t *tp, ssize_t *sizep,
 {
 	ssize_t size, increment;
 
-	if (version > CTF_VERSION_1 &&
-	    tp->ctt_size == CTF_LSIZE_SENT) {
+	if (tp->ctt_size == CTF_LSIZE_SENT) {
 		size = CTF_TYPE_LSIZE(tp);
 		increment = sizeof (ctf_type_t);
 	} else {