Skip to contentSkip to conversation

isdn_v110 warning fix

PATCH New Jesper Juhl 1 participant 1 message Aug 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn_v110 warning fix

Hi Andrew,

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.

---

 drivers/isdn/i4l/isdn_v110.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/isdn/i4l/isdn_v110.c +2 -2
@@ -516,11 +516,11 @@
 }
 
 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;