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