Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f347535a authored by roel kluin's avatar roel kluin Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (10148): cx23885: unsigned cx23417_mailbox cannot be negative



Unsigned cx23417_mailbox cannot be negative

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9ed55375
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1027,12 +1027,13 @@ static int cx23885_initialize_codec(struct cx23885_dev *dev)
			printk(KERN_ERR "%s() f/w load failed\n", __func__);
			printk(KERN_ERR "%s() f/w load failed\n", __func__);
			return retval;
			return retval;
		}
		}
		dev->cx23417_mailbox = cx23885_find_mailbox(dev);
		retval = cx23885_find_mailbox(dev);
		if (dev->cx23417_mailbox < 0) {
		if (retval < 0) {
			printk(KERN_ERR "%s() mailbox < 0, error\n",
			printk(KERN_ERR "%s() mailbox < 0, error\n",
				__func__);
				__func__);
			return -1;
			return -1;
		}
		}
		dev->cx23417_mailbox = retval;
		retval = cx23885_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0);
		retval = cx23885_api_cmd(dev, CX2341X_ENC_PING_FW, 0, 0);
		if (retval < 0) {
		if (retval < 0) {
			printk(KERN_ERR
			printk(KERN_ERR