[PATCH] isdn_v110 warning fix
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 6 Sep 2005 22:17:55 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:36 +0000 (16:57 -0700)
Here's a small warning fix for drivers/isdn/i4l/isdn_v110.c
 drivers/isdn/i4l/isdn_v110.c:523: warning: `ret' might be used uninitialized in this function

In addition to Karsten Keil signing off on the patch, Thomas Pfeiffer also
commented on the patch, saying
"initializing ret with the value zero is correct and should be done."

Please apply.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/i4l/isdn_v110.c

index f47f2b9846d8fc45c55ef777a989316c9908c18e..38619e8cd8230b4c9d893fbb85976a6a9055df2e 100644 (file)
@@ -516,11 +516,11 @@ buffer_full:
 }
 
 int
-isdn_v110_stat_callback(int idx, isdn_ctrl * c)
+isdn_v110_stat_callback(int idx, isdn_ctrl *c)
 {
        isdn_v110_stream *v = NULL;
        int i;
-       int ret;
+       int ret = 0;
 
        if (idx < 0)
                return 0;