diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-04-26 10:25:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-26 08:10:48 -0400 |
commit | 50fa46b25490039ef51ef0dc8afdded60c4d3b59 (patch) | |
tree | 16cf4b8acd93c8167940ce66d9a7770b4a83114d /drivers/media/video/cx88 | |
parent | 63b79cfa05b35973713caa91e290311bd5ebbe1d (diff) |
V4L/DVB (7733): blackbird_find_mailbox negative return ignored in blackbird_initialize_codec()
dev->mailbox is unsigned. so a negative return goes unnoticed
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index 61c4f72644b8..6c0c94c5ef91 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -546,10 +546,12 @@ static int blackbird_initialize_codec(struct cx8802_dev *dev) | |||
546 | if (retval < 0) | 546 | if (retval < 0) |
547 | return retval; | 547 | return retval; |
548 | 548 | ||
549 | dev->mailbox = blackbird_find_mailbox(dev); | 549 | retval = blackbird_find_mailbox(dev); |
550 | if (dev->mailbox < 0) | 550 | if (retval < 0) |
551 | return -1; | 551 | return -1; |
552 | 552 | ||
553 | dev->mailbox = retval; | ||
554 | |||
553 | retval = blackbird_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); /* ping */ | 555 | retval = blackbird_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0); /* ping */ |
554 | if (retval < 0) { | 556 | if (retval < 0) { |
555 | dprintk(0, "ERROR: Firmware ping failed!\n"); | 557 | dprintk(0, "ERROR: Firmware ping failed!\n"); |