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

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I68c2b230ab73930f153d4dfd04f6840a3ee36bdd
This commit is contained in:
Tao Huang
2025-02-17 19:32:52 +08:00
parent bb13749f8a
commit ef65e877ca

View File

@@ -607,9 +607,9 @@ static void sc210iot_get_module_inf(struct sc210iot *sc210iot,
struct rkmodule_inf *inf)
{
memset(inf, 0, sizeof(*inf));
strlcpy(inf->base.lens, sc210iot->len_name, sizeof(inf->base.lens));
strlcpy(inf->base.sensor, SC210IOT_NAME, sizeof(inf->base.sensor));
strlcpy(inf->base.module, sc210iot->module_name, sizeof(inf->base.module));
strscpy(inf->base.lens, sc210iot->len_name, sizeof(inf->base.lens));
strscpy(inf->base.sensor, SC210IOT_NAME, sizeof(inf->base.sensor));
strscpy(inf->base.module, sc210iot->module_name, sizeof(inf->base.module));
}
static long sc210iot_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)