summaryrefslogtreecommitdiff
path: root/drivers/media/rc/lirc_dev.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2018-02-12 08:59:00 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-02-14 14:16:39 -0500
commitc2837ad09018807437f1249d30915e70dd6b6bbe (patch)
tree8ba8a0467a6ff34e2e70f79aefaf2bcd1e55c396 /drivers/media/rc/lirc_dev.c
parentba02086dee2d181f0b438606c38cb0c8f82d71a3 (diff)
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/lirc_dev.c')
-rw-r--r--drivers/media/rc/lirc_dev.c2
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;