]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6684): Complement va_start() with va_end() + style fixes
authorRichard Knutsson <ricknu-0@student.ltu.se>
Tue, 27 Nov 2007 09:59:37 +0000 (06:59 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 11 Dec 2007 20:08:16 +0000 (18:08 -0200)
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>
drivers/media/video/saa5246a.c
drivers/media/video/saa5249.c

index ad0232935df6fb760f176f97695f8ce81ed38957..996b49491f5a2f29c5ca6c3ed02604a47239faa1 100644 (file)
@@ -187,12 +187,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);
 }
 
index 94bb59a32b17e3e984dfb0ec03905ef99a4dc855..f55d6e85f20f34c59d93e4ae9a5f70c59ecd0a32 100644 (file)
@@ -282,12 +282,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);
 }