From 0f79aa900f3a69780dde1e934ffe21e30236934e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20SVENSSON?= Date: Tue, 17 Oct 2023 20:36:50 +0200 Subject: libctf: Return CTF_ERR in ctf_type_resolve_unsliced PR 30836 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In commit 998a4f589d68503f79695f180fdf1742eeb0a39d, all but one return statement was updated to return the error proper value. This commit rectifies that missed return statement. libctf/ ctf-types.c (ctf_type_resolve_unsliced): Return CTF_ERR on error. Signed-off-by: Torbjörn SVENSSON --- libctf/ctf-types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libctf') diff --git a/libctf/ctf-types.c b/libctf/ctf-types.c index 694d6ea79e4..4d3c01dbbb4 100644 --- a/libctf/ctf-types.c +++ b/libctf/ctf-types.c @@ -602,7 +602,7 @@ ctf_type_resolve_unsliced (ctf_dict_t *fp, ctf_id_t type) const ctf_type_t *tp; if ((type = ctf_type_resolve (fp, type)) == CTF_ERR) - return -1; + return CTF_ERR; if ((tp = ctf_lookup_by_id (&fp, type)) == NULL) return CTF_ERR; /* errno is set for us. */ -- cgit v1.2.3