mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: i2c: gc5024: move from strlcpy with unused retval to strscpy
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I6b06e6197f1d82695f368b9c93da366a474a2ce3
This commit is contained in:
@@ -549,13 +549,13 @@ static int gc5024_g_frame_interval(struct v4l2_subdev *sd,
|
||||
static void gc5024_get_module_inf(struct gc5024 *gc5024,
|
||||
struct rkmodule_inf *inf)
|
||||
{
|
||||
strlcpy(inf->base.sensor,
|
||||
strscpy(inf->base.sensor,
|
||||
GC5024_NAME,
|
||||
sizeof(inf->base.sensor));
|
||||
strlcpy(inf->base.module,
|
||||
strscpy(inf->base.module,
|
||||
gc5024->module_name,
|
||||
sizeof(inf->base.module));
|
||||
strlcpy(inf->base.lens,
|
||||
strscpy(inf->base.lens,
|
||||
gc5024->len_name,
|
||||
sizeof(inf->base.lens));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user