summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-12-16 16:35:43 +0000
committerShaun Ruffell <sruffell@digium.com>2008-12-16 16:35:43 +0000
commita2a63c195f1eb513b67396137946cfabca7761a8 (patch)
tree3ed6f9e80a074559b11af4fe207b9cf2b52e9e9e
parent21a6c0685798680d28025f4c9498593baa5332d0 (diff)
wcte12xp: Quiet some warnings about possible use of uninitialized variables.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5549 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/wcte12xp/base.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index a84f8c2..37ba154 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -203,9 +203,9 @@ static inline void cmd_decipher(struct t1 *wc, volatile unsigned char *readchunk
}
}
-static inline int t1_setreg_full(struct t1 *wc, int addr, int val, int inisr, int vpm_num)
+static inline int t1_setreg_full(struct t1 *wc, int addr, int val, const int inisr, int vpm_num)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret;
@@ -301,9 +301,9 @@ static inline int t1_getreg_isr(struct t1 *wc, int addr)
return ret;
}
-static inline int t1_getreg_full(struct t1 *wc, int addr, int inisr, int vpm_num)
+static inline int t1_getreg_full(struct t1 *wc, int addr, const int inisr, int vpm_num)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret = 0;
@@ -356,9 +356,9 @@ static inline int t1_getreg(struct t1 *wc, int addr, int inisr)
return t1_getreg_full(wc, addr, inisr, NOT_VPM);
}
-static inline int t1_setleds(struct t1 *wc, int leds, int inisr)
+static inline int t1_setleds(struct t1 *wc, int leds, const int inisr)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret = 0;