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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I357861a1f7a2137fca7b2a319109b19d800a2da0
This commit is contained in:
Tao Huang
2025-02-17 19:32:47 +08:00
parent f6e4fef22a
commit 420b0817ff

View File

@@ -662,10 +662,10 @@ static void gc2375h_get_module_inf(struct gc2375h *gc2375h,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, GC2375H_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, gc2375h->module_name,
strscpy(inf->base.sensor, GC2375H_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, gc2375h->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, gc2375h->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, gc2375h->len_name, sizeof(inf->base.lens));
}
static long gc2375h_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)