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:
parent
ee21d397d2
commit
e1f4181c29
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue