summaryrefslogtreecommitdiff
path: root/sys/dev/bluetooth
diff options
context:
space:
mode:
authorplunky <plunky@NetBSD.org>2007-12-03 10:41:59 +0000
committerplunky <plunky@NetBSD.org>2007-12-03 10:41:59 +0000
commitd8436629a8887b7e20e355be5d88f87f8296a92c (patch)
tree3dc75a17106b6fac6a7d59138215ca556bc38080 /sys/dev/bluetooth
parent5b22b72692872d8096099a3f1dcedbe58f0ba968 (diff)
initialize loop variable as loop is not necessarily undertaken
Diffstat (limited to 'sys/dev/bluetooth')
-rw-r--r--sys/dev/bluetooth/bcsp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/bluetooth/bcsp.c b/sys/dev/bluetooth/bcsp.c
index 6c79f112649..f095ad6d383 100644
--- a/sys/dev/bluetooth/bcsp.c
+++ b/sys/dev/bluetooth/bcsp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bcsp.c,v 1.10 2007/11/28 20:16:11 plunky Exp $ */
+/* $NetBSD: bcsp.c,v 1.11 2007/12/03 10:41:59 plunky Exp $ */
/*
* Copyright (c) 2007 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.10 2007/11/28 20:16:11 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.11 2007/12/03 10:41:59 plunky Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1496,6 +1496,7 @@ bcsp_input_le(struct bcsp_softc *sc, struct mbuf *m)
#endif
rcvpkt = mtod(m, uint32_t *);
+ i = 0;
/* length of le packets is 4 */
if (m->m_len == sizeof(uint32_t))