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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I953d2368893e636c50c947ef854c40a757df88ef
This commit is contained in:
Tao Huang
2025-02-17 19:32:50 +08:00
parent 87bd11bf63
commit 99d20d8faa

View File

@@ -544,10 +544,10 @@ static void ov02b10_get_module_inf(struct ov02b10 *ov02b10,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV02B10_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov02b10->module_name,
strscpy(inf->base.sensor, OV02B10_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov02b10->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov02b10->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov02b10->len_name, sizeof(inf->base.lens));
}
static long ov02b10_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)