Merge is_dup condition

This commit is contained in:
Rodrigo Arias 2023-03-21 09:56:46 +01:00 committed by Rodrigo Arias Mallo
parent 38ebc3afce
commit 9de0b18db2

View File

@ -94,8 +94,7 @@ emit(struct prv *prv, struct prv_chan *rchan)
/* Only test for duplicates if not emitting them */ /* Only test for duplicates if not emitting them */
if (~rchan->flags & PRV_EMITDUP) { if (~rchan->flags & PRV_EMITDUP) {
int is_dup = is_value_dup(rchan, &value); if (is_value_dup(rchan, &value)) {
if (is_dup) {
if (rchan->flags & PRV_SKIPDUP) if (rchan->flags & PRV_SKIPDUP)
return 0; return 0;