Skip to content

Commit c32f8ff

Browse files
committed
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>
1 parent eb5b51c commit c32f8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/video_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void video_closest_frmival(const struct device *dev, enum video_endpoint_id ep,
148148
video_closest_frmival_stepwise(&fie.stepwise, &desired, &tmp);
149149
break;
150150
default:
151-
__ASSERT(false, "invalid answer from the queried video device");
151+
CODE_UNREACHABLE;
152152
}
153153

154154
tmp = video_frmival_nsec(&tmp);

0 commit comments

Comments
 (0)