瀏覽代碼

[PATCH] isdn_v110 warning fix

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>
Jesper Juhl 19 年之前
父節點
當前提交
1e1a5cc77e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/isdn/i4l/isdn_v110.c

+ 2 - 2
drivers/isdn/i4l/isdn_v110.c

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