Skip to content

Commit 589f1e8

Browse files
author
Linus Torvalds
committed
Merge branch 'isdn-fix' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6
* 'isdn-fix' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6: ISDN HiSax: uninitialized return in hisax_cs_setup
2 parents ce524c8 + 9ee0be0 commit 589f1e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/isdn/hisax/config.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,14 +1146,12 @@ static int hisax_cs_setup(int cardnr, struct IsdnCard *card,
11461146
}
11471147
if (ret) {
11481148
closecard(cardnr);
1149-
ret = 0;
11501149
goto outf_cs;
11511150
}
11521151
init_tei(cs, cs->protocol);
11531152
ret = CallcNewChan(cs);
11541153
if (ret) {
11551154
closecard(cardnr);
1156-
ret = 0;
11571155
goto outf_cs;
11581156
}
11591157
/* ISAR needs firmware download first */
@@ -1165,7 +1163,7 @@ static int hisax_cs_setup(int cardnr, struct IsdnCard *card,
11651163
outf_cs:
11661164
kfree(cs);
11671165
card->cs = NULL;
1168-
return ret;
1166+
return 0;
11691167
}
11701168

11711169
static int checkcard(int cardnr, char *id, int *busy_flag, struct module *lockowner)

0 commit comments

Comments
 (0)