Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6deaca2b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx23110: Fix return code for cx24110_set_fec()



When a parameter is invalid, the right return code is
-EINVAL.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5eb28292
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -217,8 +217,7 @@ static int cx24110_set_fec (struct cx24110_state* state, fe_code_rate_t fec)
			cx24110_writereg(state, 0x1b, g2[fec]);
			/* not sure if this is the right way: I always used AutoAcq mode */
	   } else
		   return -EOPNOTSUPP;
/* fixme (low): which is the correct return code? */
		   return -EINVAL;
	}
	return 0;
}