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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I85ac312c79cc1ba46a3f32628cca3ac850474a42
This commit is contained in:
Tao Huang
2025-02-17 19:32:51 +08:00
parent 0e152af3d5
commit 9365702ca7

View File

@@ -995,10 +995,10 @@ static void ov4688_get_module_inf(struct ov4688 *ov4688,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV4688_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov4688->module_name,
strscpy(inf->base.sensor, OV4688_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov4688->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov4688->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov4688->len_name, sizeof(inf->base.lens));
}
static long ov4688_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)