mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
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:
parent
ba02086dee
commit
c2837ad090
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user