Skip to content

Commit bd176c2

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 b08d533 commit bd176c2

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
@@ -149,7 +149,7 @@ void video_closest_frmival(const struct device *dev, enum video_endpoint_id ep,
149149
video_closest_frmival_stepwise(&fie.stepwise, &desired, &tmp);
150150
break;
151151
default:
152-
__ASSERT(false, "invalid answer from the queried video device");
152+
CODE_UNREACHABLE;
153153
}
154154

155155
tmp_nsec = video_frmival_nsec(&tmp);

0 commit comments

Comments
 (0)