media: rc: remove useless if statement
authorSean Young <sean@mess.org>
Mon, 12 Feb 2018 13:59:00 +0000 (08:59 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 14 Feb 2018 19:16:39 +0000 (14:16 -0500)
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>
drivers/media/rc/lirc_dev.c

index b01725296b463c33a5ba45ce7638033b58315951..fd3860d500345b0c401a59934f97929cb721f660 100644 (file)
@@ -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;