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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic75dc49d2ce6364608a54bbb542351813e613528
This commit is contained in:
Tao Huang
2025-02-17 19:32:49 +08:00
parent 06625669b1
commit a48894e976

View File

@@ -1625,10 +1625,10 @@ static void imx415_get_module_inf(struct imx415 *imx415,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, IMX415_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, imx415->module_name,
strscpy(inf->base.sensor, IMX415_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, imx415->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, imx415->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, imx415->len_name, sizeof(inf->base.lens));
}
static void imx415_get_pclk_and_tline(struct imx415 *imx415)