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