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

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

View File

@@ -938,10 +938,10 @@ static void os05a20_get_module_inf(struct os05a20 *os05a20,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OS05A20_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, os05a20->module_name,
strscpy(inf->base.sensor, OS05A20_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, os05a20->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, os05a20->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, os05a20->len_name, sizeof(inf->base.lens));
}
static int os05a20_set_hdrae(struct os05a20 *os05a20,