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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I066af9f4b3bbe04bce4ddd9fc5f7470bdac981c7
This commit is contained in:
Tao Huang
2025-02-17 19:32:45 +08:00
parent 8557d8057b
commit e8a0078566

View File

@@ -4372,10 +4372,10 @@ static void ar0822_get_module_inf(struct ar0822 *ar0822,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, AR0822_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ar0822->module_name,
strscpy(inf->base.sensor, AR0822_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ar0822->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ar0822->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ar0822->len_name, sizeof(inf->base.lens));
}
static int ar0822_set_hdrae(struct ar0822 *ar0822,