diff options
author | Hartmut Birr <e9hack@googlemail.com> | 2007-07-02 12:39:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-03 14:11:21 -0400 |
commit | 1fb4a17f6e47d86b25bfc4fd9df4301bca09c999 (patch) | |
tree | 79aacb12fcafd9948a47600edb3cf052eb562b94 /drivers | |
parent | 1e4597e8f0049dccedb0e011934007309fa2aeab (diff) |
V4L/DVB (5822): Fix the return value in ttpci_budget_init()
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/ttpci/budget-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttpci/budget-core.c b/drivers/media/dvb/ttpci/budget-core.c index 2557ac9620d0..b611f2b1f8bc 100644 --- a/drivers/media/dvb/ttpci/budget-core.c +++ b/drivers/media/dvb/ttpci/budget-core.c | |||
@@ -529,7 +529,7 @@ int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev, | |||
529 | if (bi->type != BUDGET_FS_ACTIVY) | 529 | if (bi->type != BUDGET_FS_ACTIVY) |
530 | saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTHI); | 530 | saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTHI); |
531 | 531 | ||
532 | if (budget_register(budget) == 0) | 532 | if ((ret = budget_register(budget)) == 0) |
533 | return 0; /* Everything OK */ | 533 | return 0; /* Everything OK */ |
534 | 534 | ||
535 | /* An error occurred, cleanup resources */ | 535 | /* An error occurred, cleanup resources */ |