From patchwork Fri Jan 28 02:08:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 33889 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2c4e:0:0:0:0 with SMTP id x14csp32864iov; Thu, 27 Jan 2022 18:09:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWowJOkV+Q6az4r/xEbEiw4RIf92UXMmw0UmBlr976CobGgj/UCLWkwTcueNAt5kHP/2TP X-Received: by 2002:a17:907:3f8b:: with SMTP id hr11mr5193778ejc.602.1643335788505; Thu, 27 Jan 2022 18:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643335788; cv=none; d=google.com; s=arc-20160816; b=esuXMkYP+coA4m58k90T4zQbY7XXdWDwZvk/WeZa/yFOdxn9ZRaey3RDULNutLMeom 0tAqBP6ls15RiPTk205T4VS7PwqwQKlwzwp0bRhPx1U6OaInLyJZBnQlG6fWCoIuBkqS p9Vesk4zGY7/M7MkqIRJ7KvqxC4XD0TKTp87aEqjiKcrpkGFS4oBvkCyvKaJjs+48D/D PZl2cIhiyptyGUMJvPsj703EqgNErOtVNaahI8tbsPCTRm7WuBLWg3Re+fpAV3u9AQDN aa9yrJ88sIulis7im+iw2ECmV4yxJl9pbw/ozBenWXGytR4pwB+OgHYrwYMP6efcqjNK 7Blg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:mime-version:message-id:date :to:from:delivered-to; bh=0WKcbbvPoFePe4JsdjCR1JVsdZI6tbDoHiMz/BXX6Rk=; b=IB1IhdcnKBPmYI85290U4KDIN33/9kk/fOwyxX57qb//dz3dhMVXMWcpZi3ZkttcYn 2sbz/8zFF+xwJgyp8XNSH1uroB5+1BSbzeSLjRd9hMp3tnwIZ+tvkQRHEVkjdOw09fL+ LHyNDCy86HGD7zmr6G3LbiZgAm7f8JP5+qEdHsat3uRf9sFLVGu15Fc2JWhEAnz9quJc HrNf7K4nKLdWf50hHVTp19X6+hQ+b/MwNQxa0wRvW9+3+BSds+5vrsyS6Q7B3sGXohoD PqwPY851qcscJELI3T6+YkKoylm+qOMWP58zTNC+2wKJdNRBrFgf4LHD65uv5rvE4YWY kEgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z3si2458563edc.168.2022.01.27.18.09.48; Thu, 27 Jan 2022 18:09:48 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2F36B68B207; Fri, 28 Jan 2022 04:09:46 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: mZNRauDf7esJ 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;