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

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

View File

@@ -671,10 +671,10 @@ static void gc0329_get_module_inf(struct gc0329 *gc0329,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, gc0329->module_name,
strscpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, gc0329->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, gc0329->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, gc0329->len_name, sizeof(inf->base.lens));
}
static long gc0329_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)