Skip to content

Commit

Permalink
V4L/DVB (10148): cx23885: unsigned cx23417_mailbox cannot be negative
Browse files Browse the repository at this point in the history
Unsigned cx23417_mailbox cannot be negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
roel kluin authored and Mauro Carvalho Chehab committed Jan 2, 2009
1 parent 9ed5537 commit f347535
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/media/video/cx23885/cx23885-417.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,12 +1027,13 @@ static int cx23885_initialize_codec(struct cx23885_dev *dev)
printk(KERN_ERR "%s() f/w load failed\n", __func__);
return retval;
}
dev->cx23417_mailbox = cx23885_find_mailbox(dev);
if (dev->cx23417_mailbox < 0) {
retval = cx23885_find_mailbox(dev);
if (retval < 0) {
printk(KERN_ERR "%s() mailbox < 0, error\n",
__func__);
return -1;
}
dev->cx23417_mailbox = retval;
retval = cx23885_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0);
if (retval < 0) {
printk(KERN_ERR
Expand Down

0 comments on commit f347535

Please sign in to comment.