Commit e633a18d authored by Miguel Gómez Sexto's avatar Miguel Gómez Sexto

Fix compilation warning

Signed-off-by: Miguel Gómez Sexto's avatarMiguel Gomez <magomez@igalia.com>
parent 5a287e79
......@@ -299,15 +299,15 @@ static int __tdc_valid_channel(struct tdc_board *b, int chan)
if (!(b->chan_config & TDC_INPUT_ENABLE_FLAG) ) {
fprintf(stderr, "%s: All channels disabled\n",
__func__, chan);
errno = EINVAL;
__func__);
errno = EINVAL;
return 0;
}
if (!(b->chan_config & (1 << chan)) ) {
fprintf(stderr, "%s: Channel not enabled: %i\n",
__func__, chan);
errno = EINVAL;
errno = EINVAL;
return 0;
}
......
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