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

Commit b730a81c authored by Richard Knutsson's avatar Richard Knutsson Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (6684): Complement va_start() with va_end() + style fixes



Complement va_start() with va_end() + minor style fixes in the same function.

Signed-off-by: default avatarRichard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 174eb8e8
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -193,6 +193,8 @@ static int i2c_senddata(struct saa5246a_device *t, ...)

	while ((v = va_arg(argp, int)) != -1)
		buf[ct++] = v;

	va_end(argp);
	return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}

+5 −3
Original line number Diff line number Diff line
@@ -288,6 +288,8 @@ static int i2c_senddata(struct saa5249_device *t, ...)

	while ((v = va_arg(argp, int)) != -1)
		buf[ct++] = v;

	va_end(argp);
	return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}