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

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

View File

@@ -8001,10 +8001,10 @@ static void ov2718_get_module_inf(struct ov2718 *ov2718,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV2718_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov2718->module_name,
strscpy(inf->base.sensor, OV2718_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov2718->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov2718->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov2718->len_name, sizeof(inf->base.lens));
}
static long ov2718_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)