diff options
author | Sean Young <sean@mess.org> | 2018-02-12 16:59:00 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-14 22:16:39 +0300 |
commit | c2837ad09018807437f1249d30915e70dd6b6bbe (patch) | |
tree | 8ba8a0467a6ff34e2e70f79aefaf2bcd1e55c396 /drivers/media/rc | |
parent | ba02086dee2d181f0b438606c38cb0c8f82d71a3 (diff) | |
download | linux-c2837ad09018807437f1249d30915e70dd6b6bbe.tar.xz |
media: rc: remove useless if statement
ret is always 0, so remove if statement.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index b01725296b46..fd3860d50034 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c @@ -570,7 +570,7 @@ static long ir_lirc_ioctl(struct file *file, unsigned int cmd, ret = -EINVAL; else if (dev->s_timeout) ret = dev->s_timeout(dev, tmp); - else if (!ret) + else dev->timeout = tmp; } break; |