mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
media: usb: dvb-usb-v2: af9015.c: return 0 instead of 'ret'.
Since 'ret' is known to be 0, just return '0'. This fixes two smatch warnings: af9015.c:1168 af9015_rc_query() warn: missing error code? 'ret' af9015.c:1177 af9015_rc_query() warn: missing error code? 'ret' Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
8963c11952
commit
a0ccbc65bc
1 changed files with 2 additions and 2 deletions
|
@ -1165,7 +1165,7 @@ static int af9015_rc_query(struct dvb_usb_device *d)
|
||||||
/* If any of these are non-zero, assume invalid data */
|
/* If any of these are non-zero, assume invalid data */
|
||||||
if (buf[1] || buf[2] || buf[3]) {
|
if (buf[1] || buf[2] || buf[3]) {
|
||||||
dev_dbg(&intf->dev, "invalid data\n");
|
dev_dbg(&intf->dev, "invalid data\n");
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for repeat of previous code */
|
/* Check for repeat of previous code */
|
||||||
|
@ -1174,7 +1174,7 @@ static int af9015_rc_query(struct dvb_usb_device *d)
|
||||||
dev_dbg(&intf->dev, "key repeated\n");
|
dev_dbg(&intf->dev, "key repeated\n");
|
||||||
rc_repeat(d->rc_dev);
|
rc_repeat(d->rc_dev);
|
||||||
state->rc_repeat = buf[6];
|
state->rc_repeat = buf[6];
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only process key if canary killed */
|
/* Only process key if canary killed */
|
||||||
|
|
Loading…
Reference in a new issue