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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic722795f1a3e07868f0dc297c0b37619a51128ec
This commit is contained in:
Tao Huang
2025-02-17 19:32:47 +08:00
parent 8762126870
commit 29b80c0de8

View File

@@ -1528,10 +1528,10 @@ static void gc4c33_get_module_inf(struct gc4c33 *gc4c33,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, GC4C33_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, gc4c33->module_name,
strscpy(inf->base.sensor, GC4C33_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, gc4c33->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, gc4c33->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, gc4c33->len_name, sizeof(inf->base.lens));
}
static int gc4c33_get_channel_info(struct gc4c33 *gc4c33, struct rkmodule_channel_info *ch_info)