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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7fede549c93fb4ca0f15c9e0c1204f51368de445
This commit is contained in:
Tao Huang
2025-02-17 19:32:52 +08:00
parent d5e39f367d
commit 7b84d9eee8

View File

@@ -632,10 +632,10 @@ static void ov9750_get_module_inf(struct ov9750 *ov9750,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV9750_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov9750->module_name,
strscpy(inf->base.sensor, OV9750_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov9750->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov9750->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov9750->len_name, sizeof(inf->base.lens));
}
static long ov9750_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)