Skip to content
Commit a3728d71 authored by Josuah Demangeon's avatar Josuah Demangeon Committed by Benjamin Cabé
Browse files

drivers: video: common: avoid dead code in functions with retry



Avoid k_sleep() never being called when video_write_reg_retry() and
video_read_reg_retry() have a number of retry set to zero (default).
The default number of retries being controlled by
CONFIG_VIDEO_I2C_RETRY_NUM.

Signed-off-by: default avatarJosuah Demangeon <me@josuah.net>
parent c8fd14ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment