Commit b58f1b3e authored by Federico Vaga's avatar Federico Vaga

lib: minor-fix: remove typo and warning on error assignement

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9701a894
......@@ -327,7 +327,7 @@ static int fmcadc_zio_config(struct __fmcadc_dev_zio *fa, unsigned int flags,
struct fmcadc_conf *conf, unsigned int direction)
{
int err, i;
int err = 0, i;
uint32_t enabled;
/* Disabling the trigger before changing configuration */
......@@ -380,7 +380,7 @@ static int fmcadc_zio_config(struct __fmcadc_dev_zio *fa, unsigned int flags,
/* if the trigger was enabled restore it */
if (direction && enabled)
err |= fa_zio_sysfs_set(fa, "cset0/trigger/enable", &enabled);
err = fa_zio_sysfs_set(fa, "cset0/trigger/enable", &enabled);
return err;
}
......
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