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