mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user