summaryrefslogtreecommitdiff
path: root/kernel/wcte12xp/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/wcte12xp/base.c')
-rw-r--r--kernel/wcte12xp/base.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/wcte12xp/base.c b/kernel/wcte12xp/base.c
index c8ea497..e90dda3 100644
--- a/kernel/wcte12xp/base.c
+++ b/kernel/wcte12xp/base.c
@@ -208,7 +208,7 @@ 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)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret;
@@ -228,8 +228,8 @@ static inline int t1_setreg_full(struct t1 *wc, int addr, int val, int inisr, in
}
if (inisr)
break;
-
- spin_unlock_irqrestore(&wc->reglock, flags);
+ else
+ spin_unlock_irqrestore(&wc->reglock, flags);
if (hit < 0) {
if ((ret = schluffen(&wc->regq)))
return ret;
@@ -306,7 +306,7 @@ static inline int t1_getreg_isr(struct t1 *wc, int addr)
static inline int t1_getreg_full(struct t1 *wc, int addr, int inisr, int vpm_num)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret = 0;
@@ -361,7 +361,7 @@ static inline int t1_getreg(struct t1 *wc, int addr, int inisr)
static inline int t1_setleds(struct t1 *wc, int leds, int inisr)
{
- unsigned long flags;
+ unsigned long flags = 0;
int hit;
int ret = 0;