Commit 7136bacf authored by Enrico Scholz's avatar Enrico Scholz

onsemi: core: allow NULL parameters in onsemi_get_frame_size()

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 2ff2185e
......@@ -1316,8 +1316,11 @@ static void onsemi_get_frame_size(struct onsemi_core const *onsemi,
v_size = clamp_t(unsigned int, v_size,
limits->vlen.min, limits->vlen.max);
*h_size_out = h_size;
*v_size_out = v_size;
if (h_size_out)
*h_size_out = h_size;
if (v_size_out)
*v_size_out = v_size;
}
static unsigned long onsemi_frame_time_us(struct onsemi_core const *onsemi,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment