Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5492fb9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx23885: Don't use memset on vidioc_ callbacks



vidioc_g_tuner should not do any memset for the parameters. Core
already does that. In particular, V4L2 core now does some handling
for the tuner type, and the tuner-core module relies on that.

So, doing any memset there is a very bad idea.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 97ce5670
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1223,7 +1223,6 @@ static int vidioc_g_tuner(struct file *file, void *priv,
	if (0 != t->index)
	if (0 != t->index)
		return -EINVAL;
		return -EINVAL;


	memset(t, 0, sizeof(*t));
	strcpy(t->name, "Television");
	strcpy(t->name, "Television");


	return 0;
	return 0;