summaryrefslogtreecommitdiffstats
path: root/src/codec
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/ecu_fr.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/codec/ecu_fr.c b/src/codec/ecu_fr.c
index d4ea741b..784a5b8e 100644
--- a/src/codec/ecu_fr.c
+++ b/src/codec/ecu_fr.c
@@ -64,16 +64,12 @@ static bool reduce_xmaxcr(struct bitvec *frame_bitvec,
*/
static bool reduce_xmaxcr_all(struct bitvec *frame_bitvec)
{
- bool silent = false;
-
- if (reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC00))
- silent = true;
- if (reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC10))
- silent = true;
- if (reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC20))
- silent = true;
- if (reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC30))
- silent = true;
+ bool silent = true;
+
+ silent &= reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC00);
+ silent &= reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC10);
+ silent &= reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC20);
+ silent &= reduce_xmaxcr(frame_bitvec, GSM610_RTP_XMAXC30);
return silent;
}