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