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