Skip to contentSkip to conversation

ISDN code movement fix

PATCH New Jeff Garzik 1 participant 1 message Jul 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ISDN code movement fix

Please pull from 'isdn-fix' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git isdn-fix

to receive the following updates:

 drivers/isdn/hisax/config.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

Florin Malita (1):
ISDN HiSax: uninitialized return in hisax_cs_setup

drivers/isdn/hisax/config.c +1 -3
index 5f7907e..97097ef 100644
@@ -1146,14 +1146,12 @@ static int hisax_cs_setup(int cardnr, struct IsdnCard *card,
 	}
 	if (ret) {
 		closecard(cardnr);
-		ret = 0;
 		goto outf_cs;
 	}
 	init_tei(cs, cs->protocol);
 	ret = CallcNewChan(cs);
 	if (ret) {
 		closecard(cardnr);
-		ret = 0;
 		goto outf_cs;
 	}
 	/* ISAR needs firmware download first */
@@ -1165,7 +1163,7 @@ static int hisax_cs_setup(int cardnr, struct IsdnCard *card,
 outf_cs:
 	kfree(cs);
 	card->cs = NULL;
-	return ret;
+	return 0;
 }
 
 static int checkcard(int cardnr, char *id, int *busy_flag, struct module *lockowner)