From a32ea2ab9c8bc34bb143f74a74a7cf456ba4099b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 1 Apr 2021 12:53:28 +0200 Subject: [PATCH] Remove redundant check --- src/core/system_parameters/reed_solomon.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/system_parameters/reed_solomon.cc b/src/core/system_parameters/reed_solomon.cc index db5cffffa..1118ef1ae 100644 --- a/src/core/system_parameters/reed_solomon.cc +++ b/src/core/system_parameters/reed_solomon.cc @@ -771,10 +771,6 @@ int ReedSolomon::decode(std::vector& data_to_decode, const std::vector< int ReedSolomon::decode_rs_8(uint8_t* data, const int* eras_pos, int no_eras, int pad) const { - if (pad < 0 || pad > 222) - { - return -1; - } int deg_lambda; int el; int deg_omega;