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