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

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

View File

@@ -676,10 +676,10 @@ static void ov9281_get_module_inf(struct ov9281 *ov9281,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV9281_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov9281->module_name,
strscpy(inf->base.sensor, OV9281_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov9281->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov9281->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov9281->len_name, sizeof(inf->base.lens));
}
static long ov9281_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)