mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
media: i2c: gc2053: move from strlcpy with unused retval to strscpy
Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: Ibef9a87986489f63603f2fff0567b43c089cb228
This commit is contained in:
@@ -905,10 +905,10 @@ static void gc2053_get_module_inf(struct gc2053 *gc2053,
|
||||
struct rkmodule_inf *inf)
|
||||
{
|
||||
memset(inf, 0, sizeof(*inf));
|
||||
strlcpy(inf->base.sensor, GC2053_NAME, sizeof(inf->base.sensor));
|
||||
strlcpy(inf->base.module, gc2053->module_name,
|
||||
strscpy(inf->base.sensor, GC2053_NAME, sizeof(inf->base.sensor));
|
||||
strscpy(inf->base.module, gc2053->module_name,
|
||||
sizeof(inf->base.module));
|
||||
strlcpy(inf->base.lens, gc2053->len_name, sizeof(inf->base.lens));
|
||||
strscpy(inf->base.lens, gc2053->len_name, sizeof(inf->base.lens));
|
||||
}
|
||||
|
||||
static void gc2053_set_awb_cfg(struct gc2053 *gc2053,
|
||||
|
||||
Reference in New Issue
Block a user