projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba02086
)
media: rc: remove useless if statement
author
Sean Young
<sean@mess.org>
Mon, 12 Feb 2018 13:59:00 +0000
(08:59 -0500)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/drivers/media/rc/lirc_dev.c
b/drivers/media/rc/lirc_dev.c
index b01725296b463c33a5ba45ce7638033b58315951..fd3860d500345b0c401a59934f97929cb721f660 100644
(file)
--- 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;