Message ID | E1m6S7m-000C7U-2b@www.linuxtv.org |
---|---|
State | Accepted |
Commit | 6b7f554be8c92319d7e6df92fd247ebb9beb4a45 |
Headers | show |
Series | [git:media_stage/master] media: rc-loopback: return number of emitters rather than error | expand |
diff --git a/drivers/media/rc/rc-loopback.c b/drivers/media/rc/rc-loopback.c index 1ba3f96ffa7d..40ab66c850f2 100644 --- a/drivers/media/rc/rc-loopback.c +++ b/drivers/media/rc/rc-loopback.c @@ -42,7 +42,7 @@ static int loop_set_tx_mask(struct rc_dev *dev, u32 mask) if ((mask & (RXMASK_REGULAR | RXMASK_LEARNING)) != mask) { dprintk("invalid tx mask: %u\n", mask); - return -EINVAL; + return 2; } dprintk("setting tx mask: %u\n", mask);