diff options
author | Steven Liu <liuqi05@kuaishou.com> | 2022-01-28 10:08:17 +0800 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-01-28 08:27:46 +0100 |
commit | f0044d886f0e02789976b786b9cc85c4dffa4da7 (patch) | |
tree | 41fbad92a3667f07c9fb5887ca1d501ef61eca52 /libavutil/tx.c | |
parent | 3c831847a8813c30c78fc664c67bbd623e0c8907 (diff) |
avutil/tx: remove deadcode of the control flow
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 <liuqi05@kuaishou.com>
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r-- | libavutil/tx.c | 3 |
1 files changed, 0 insertions, 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; |