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>
This commit is contained in:
Sean Young 2018-02-12 08:59:00 -05:00 committed by Mauro Carvalho Chehab
parent ba02086dee
commit c2837ad090
1 changed files with 1 additions and 1 deletions

View 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;