media: i2c: gc5024: move from strlcpy with unused retval to strscpy

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6b06e6197f1d82695f368b9c93da366a474a2ce3
This commit is contained in:
Tao Huang
2025-02-17 19:32:48 +08:00
parent 29b80c0de8
commit 9d5fb80238

View File

@@ -549,13 +549,13 @@ static int gc5024_g_frame_interval(struct v4l2_subdev *sd,
static void gc5024_get_module_inf(struct gc5024 *gc5024,
struct rkmodule_inf *inf)
{
strlcpy(inf->base.sensor,
strscpy(inf->base.sensor,
GC5024_NAME,
sizeof(inf->base.sensor));
strlcpy(inf->base.module,
strscpy(inf->base.module,
gc5024->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens,
strscpy(inf->base.lens,
gc5024->len_name,
sizeof(inf->base.lens));
}