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

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

View File

@@ -1032,10 +1032,10 @@ static void bf3925_get_module_inf(struct bf3925 *bf3925,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, bf3925->module_name,
strscpy(inf->base.sensor, DRIVER_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, bf3925->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, bf3925->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, bf3925->len_name, sizeof(inf->base.lens));
}
static long bf3925_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)