summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-07-02 12:39:41 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-07-02 12:39:41 -0400
commit424e8229ba171eb97b4d366990e3dd17b1eade74 (patch)
tree14853005234bb5ca54fc38504c61249990cc49ac /linux/drivers/media/dvb
parent01b9a7bc910dd9391e38c1ae6c3a22aa4c362b7a (diff)
downloadmediapointer-dvb-s2-424e8229ba171eb97b4d366990e3dd17b1eade74.tar.gz
mediapointer-dvb-s2-424e8229ba171eb97b4d366990e3dd17b1eade74.tar.bz2
Fix the return value in ttpci_budget_init()
From: Hartmut Birr <e9hack@googlemail.com> if the call to budget_register() fails in ttpci_budget_int(), ttpci_budget_init() returns success. The attached patch will fix this problem. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c
index 2557ac962..b611f2b1f 100644
--- a/linux/drivers/media/dvb/ttpci/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c
@@ -529,7 +529,7 @@ int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev,
if (bi->type != BUDGET_FS_ACTIVY)
saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTHI);
- if (budget_register(budget) == 0)
+ if ((ret = budget_register(budget)) == 0)
return 0; /* Everything OK */
/* An error occurred, cleanup resources */