From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 559B240691 for ; Fri, 28 Jan 2022 02:09:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E96B868B203; Fri, 28 Jan 2022 04:09:45 +0200 (EET) Received: from smtpbg.qq.com (smtpbg127.qq.com [109.244.180.96]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4DE8E68B094 for ; Fri, 28 Jan 2022 04:09:38 +0200 (EET) X-QQ-mid: bizesmtp16t1643335702tjyd9rz8 Received: from localhost (unknown [103.107.216.237]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 28 Jan 2022 10:08:21 +0800 (CST) X-QQ-SSF: 01100000002000Z0Z000B00A0000000 X-QQ-FEAT: 7IYoDWSuGNeerthi7oHxL0aqw3ZJnrO0/9ghbWq0EOqYgYaCAk8qn/+KthkRu +t8bsQieHfSZpDLWw9xbZ+NJmeGow3y6GrtSC/JUnJIYjuYyrVnzrcNLVWBn7NVPZl9yXWc z8RBsaKHgcfJHnPVnRVPSlzXICqx5OmaWJJcP7BFr5GjwUzBSSgwybe/N23RU7Rq+yDwspI EfdBqWWKlAbFXv/zrK0bpqxFRLYcVyKMJFmn0vUidKPqR+OnYaNeg9T3tQPwFKAsSmOKRpU YgYk8FFmtLlBx06UyIomkE8jYDWVVsZN75iuAaHmVh8Ur7 X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Fri, 28 Jan 2022 10:08:17 +0800 Message-Id: <20220128020818.39850-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgspam:qybgspam1 Subject: [FFmpeg-devel] [PATCH 1/2] avutil/tx: remove deadcode of the control flow X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Steven Liu Fix CID: 1497864 The control flow should return ENOSYS if nb_cd_matches is 0 at before and the ret equal AVERROR(ENOMEM) or goto end label, so remove the last control flow if (ret >= 0) before end label. Signed-off-by: Steven Liu --- libavutil/tx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavutil/tx.c b/libavutil/tx.c index 2897f3bd35..50616adba7 100644 --- a/libavutil/tx.c +++ b/libavutil/tx.c @@ -601,9 +601,6 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type, av_free(sub); - if (ret >= 0) - ret = AVERROR(ENOSYS); - end: av_free(cd_matches); return ret; -- 2.25.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".