summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwcfxs.c2
-rwxr-xr-xwctdm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/wcfxs.c b/wcfxs.c
index 84fe9f6..0620371 100755
--- a/wcfxs.c
+++ b/wcfxs.c
@@ -926,6 +926,7 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
{
unsigned char vbat;
unsigned long origjiffies;
+ int lim;
/* Set period of DC-DC converter to 1/64 khz */
wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */);
@@ -959,7 +960,6 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
/* Proslic max allowed loop current, reg 71 LOOP_I_LIMIT */
/* If out of range, just set it to the default value */
- int lim;
lim = (loopcurrent - 20) / 3;
if ( loopcurrent > 41 ) {
lim = 0;
diff --git a/wctdm.c b/wctdm.c
index 84fe9f6..0620371 100755
--- a/wctdm.c
+++ b/wctdm.c
@@ -926,6 +926,7 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
{
unsigned char vbat;
unsigned long origjiffies;
+ int lim;
/* Set period of DC-DC converter to 1/64 khz */
wcfxs_setreg(wc, card, 92, 0xff /* was 0xff */);
@@ -959,7 +960,6 @@ static int wcfxs_powerup_proslic(struct wcfxs *wc, int card, int fast)
/* Proslic max allowed loop current, reg 71 LOOP_I_LIMIT */
/* If out of range, just set it to the default value */
- int lim;
lim = (loopcurrent - 20) / 3;
if ( loopcurrent > 41 ) {
lim = 0;