Commit a0ea8608 authored by Federico Vaga's avatar Federico Vaga

lib: fix flags validation on acq_flush()

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent e1bedd66
......@@ -265,7 +265,7 @@ int adc_acq_flush(struct adc_dev *dev, unsigned int flags)
return -1;
}
if (flags & ADC_FLUSH_F_ALL) {
if (flags & ~ADC_FLUSH_F_ALL) {
errno = ADC_ENOFLAGS;
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment