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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I031040ead5ed39e1fed91cfdf19d94768058e5ec
This commit is contained in:
Tao Huang
2025-02-17 19:32:51 +08:00
parent 52958d288f
commit 90a173b8d0

View File

@@ -745,10 +745,10 @@ static void ov5648_get_module_inf(struct ov5648 *ov5648,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.sensor, OV5648_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, ov5648->module_name,
strscpy(inf->base.sensor, OV5648_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, ov5648->module_name,
sizeof(inf->base.module));
strlcpy(inf->base.lens, ov5648->len_name, sizeof(inf->base.lens));
strscpy(inf->base.lens, ov5648->len_name, sizeof(inf->base.lens));
}
static long ov5648_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)