Commit e1b3c207 authored by Federico Vaga's avatar Federico Vaga

fmcadc-lib-route.c: trivial fix: rename cflags to cap_mask

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 0c98f168
......@@ -168,7 +168,7 @@ int fmcadc_apply_config(struct fmcadc_dev *dev, unsigned int flags,
struct fmcadc_conf *conf)
{
struct fmcadc_gid *b = (void *)dev;
uint32_t cflags;
uint32_t cap_mask;
if (!conf || !dev) {
/* conf and dev cannot be NULL*/
......@@ -178,11 +178,11 @@ int fmcadc_apply_config(struct fmcadc_dev *dev, unsigned int flags,
if (!conf->flags)
return 0; /* Nothing to do */
cflags = b->board->capabilities[conf->type];
if ((cflags & conf->mask) != conf->mask) {
cap_mask = b->board->capabilities[conf->type];
if ((cap_mask & conf->mask) != conf->mask) {
/* Unsupported capabilities */
fprintf(stderr, "Apply Config, wrong mask 0x%x (0x%x)",
conf->mask, cflags);
conf->mask, cap_mask);
errno = FMCADC_ENOCAP;
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