[git commit] bc: code shrink
Denys Vlasenko
vda.linux at googlemail.com
Wed Jan 6 13:00:53 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=cc4303f5e603f3212ede6965ee37609d2a386398
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/bc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 48be3d8a3..53eb5c799 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -1841,9 +1841,9 @@ static FAST_FUNC BC_STATUS zbc_num_k(BcNum *restrict a, BcNum *restrict b,
RETURN_STATUS(BC_STATUS_SUCCESS);
}
- if (a->len + b->len < BC_NUM_KARATSUBA_LEN
- || a->len < BC_NUM_KARATSUBA_LEN
+ if (a->len < BC_NUM_KARATSUBA_LEN
|| b->len < BC_NUM_KARATSUBA_LEN
+ /* || a->len + b->len < BC_NUM_KARATSUBA_LEN - redundant check */
) {
size_t i, j, len;
More information about the busybox-cvs
mailing list