[dahdi-commits] sruffell: linux/trunk r5549 - /linux/trunk/drivers/dahdi/wcte12xp/base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Dec 16 10:35:44 CST 2008
Author: sruffell
Date: Tue Dec 16 10:35:43 2008
New Revision: 5549
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5549
Log:
wcte12xp: Quiet some warnings about possible use of uninitialized variables.
Modified:
linux/trunk/drivers/dahdi/wcte12xp/base.c
Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=5549&r1=5548&r2=5549
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Tue Dec 16 10:35:43 2008
@@ -203,9 +203,9 @@
}
}
-static inline int t1_setreg_full(struct t1 *wc, int addr, int val, int inisr, int vpm_num)
-{
- unsigned long flags;
+static inline int t1_setreg_full(struct t1 *wc, int addr, int val, const int inisr, int vpm_num)
+{
+ unsigned long flags = 0;
int hit;
int ret;
@@ -301,9 +301,9 @@
return ret;
}
-static inline int t1_getreg_full(struct t1 *wc, int addr, int inisr, int vpm_num)
-{
- unsigned long flags;
+static inline int t1_getreg_full(struct t1 *wc, int addr, const int inisr, int vpm_num)
+{
+ unsigned long flags = 0;
int hit;
int ret = 0;
@@ -356,9 +356,9 @@
return t1_getreg_full(wc, addr, inisr, NOT_VPM);
}
-static inline int t1_setleds(struct t1 *wc, int leds, int inisr)
-{
- unsigned long flags;
+static inline int t1_setleds(struct t1 *wc, int leds, const int inisr)
+{
+ unsigned long flags = 0;
int hit;
int ret = 0;
More information about the dahdi-commits
mailing list