diff --git a/drivers/video/video_st_mipid02.c b/drivers/video/video_st_mipid02.c index 88d9aabb158..0b2493619a6 100644 --- a/drivers/video/video_st_mipid02.c +++ b/drivers/video/video_st_mipid02.c @@ -189,7 +189,7 @@ static int mipid02_get_fmt(const struct device *dev, struct video_format *fmt) } desc = mipid02_get_format_desc(fmt->pixelformat); - if (desc) { + if (desc == NULL) { LOG_ERR("Sensor format not supported by the ST-MIPID02"); return -EIO; }