drivers: video: common: turn ASSERT(false) into CODE_UNREACHABLE

The assert message was not very helpful, CODE_UNREACHABLE is more
readable and requires fewer effort while proofreading.

Signed-off-by: Josuah Demangeon <me@josuah.net>
This commit is contained in:
Josuah Demangeon 2025-05-08 23:10:28 +00:00 committed by Benjamin Cabé
commit e1f4181c29

View file

@ -149,7 +149,7 @@ void video_closest_frmival(const struct device *dev, enum video_endpoint_id ep,
video_closest_frmival_stepwise(&fie.stepwise, &desired, &tmp);
break;
default:
__ASSERT(false, "invalid answer from the queried video device");
CODE_UNREACHABLE;
}
tmp_nsec = video_frmival_nsec(&tmp);