video: sw_generator: remove frmival values check

Now that api core functions check that denominator / numerator are not
null, it is no more necessary to perform this check within drivers.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
This commit is contained in:
Alain Volmat 2025-05-27 15:35:41 +02:00 committed by Benjamin Cabé
parent 5d10955863
commit 087a08c5fb

View File

@ -390,10 +390,6 @@ static int video_sw_generator_set_frmival(const struct device *dev, struct video
{
struct video_sw_generator_data *data = dev->data;
if (frmival->denominator == 0 || frmival->numerator == 0) {
return -EINVAL;
}
data->frame_rate = CLAMP(DIV_ROUND_CLOSEST(frmival->denominator, frmival->numerator),
MIN_FRAME_RATE, MAX_FRAME_RATE);
frmival->numerator = 1;