summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-27 10:59:37 +0100
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-27 10:59:37 +0100
commit3e183c071a2386de1e1f9d6149540e362cf2597a (patch)
tree3f811eb630811b0549fe4bcbaa44870f5d1d95bf /linux/drivers/media/video
parenta0d2792717f02f06a91f9c13e5e8daf01798a859 (diff)
downloadmediapointer-dvb-s2-3e183c071a2386de1e1f9d6149540e362cf2597a.tar.gz
mediapointer-dvb-s2-3e183c071a2386de1e1f9d6149540e362cf2597a.tar.bz2
Complement va_start() with va_end() + style fixes
From: Richard Knutsson <ricknu-0@student.ltu.se> Complement va_start() with va_end() + minor style fixes in the same function. Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r--linux/drivers/media/video/saa5246a.c10
-rw-r--r--linux/drivers/media/video/saa5249.c8
2 files changed, 11 insertions, 7 deletions
diff --git a/linux/drivers/media/video/saa5246a.c b/linux/drivers/media/video/saa5246a.c
index 1c5bf3f38..900185cf2 100644
--- a/linux/drivers/media/video/saa5246a.c
+++ b/linux/drivers/media/video/saa5246a.c
@@ -197,12 +197,14 @@ static int i2c_senddata(struct saa5246a_device *t, ...)
{
unsigned char buf[64];
int v;
- int ct=0;
+ int ct = 0;
va_list argp;
- va_start(argp,t);
+ va_start(argp, t);
- while((v=va_arg(argp,int))!=-1)
- buf[ct++]=v;
+ while ((v = va_arg(argp, int)) != -1)
+ buf[ct++] = v;
+
+ va_end(argp);
return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}
diff --git a/linux/drivers/media/video/saa5249.c b/linux/drivers/media/video/saa5249.c
index 8fa29c540..03923d96f 100644
--- a/linux/drivers/media/video/saa5249.c
+++ b/linux/drivers/media/video/saa5249.c
@@ -292,12 +292,14 @@ static int i2c_senddata(struct saa5249_device *t, ...)
{
unsigned char buf[64];
int v;
- int ct=0;
+ int ct = 0;
va_list argp;
va_start(argp,t);
- while((v=va_arg(argp,int))!=-1)
- buf[ct++]=v;
+ while ((v = va_arg(argp, int)) != -1)
+ buf[ct++] = v;
+
+ va_end(argp);
return i2c_sendbuf(t, buf[0], ct-1, buf+1);
}