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