mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: i2c: jx_h65: move from strlcpy with unused retval to strscpy
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I6fdae81e5755bcf57e54f0885adf676400b8ef67
This commit is contained in:
@@ -592,10 +592,10 @@ static void jx_h65_get_module_inf(struct jx_h65 *jx_h65,
|
||||
struct rkmodule_inf *inf)
|
||||
{
|
||||
memset(inf, 0, sizeof(*inf));
|
||||
strlcpy(inf->base.sensor, JX_H65_NAME, sizeof(inf->base.sensor));
|
||||
strlcpy(inf->base.module, jx_h65->module_name,
|
||||
strscpy(inf->base.sensor, JX_H65_NAME, sizeof(inf->base.sensor));
|
||||
strscpy(inf->base.module, jx_h65->module_name,
|
||||
sizeof(inf->base.module));
|
||||
strlcpy(inf->base.lens, jx_h65->len_name, sizeof(inf->base.lens));
|
||||
strscpy(inf->base.lens, jx_h65->len_name, sizeof(inf->base.lens));
|
||||
}
|
||||
|
||||
static long jx_h65_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
|
||||
|
||||
Reference in New Issue
Block a user