mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-21 20:22:13 +08:00
media: radio-wl1273: Remove an unnecessary ternary operator
There is a ternary operator, the true or false judgement of which is unnecessary in C language semantics. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
e50f23b1ca
commit
e0878c7f7f
@ -1020,7 +1020,7 @@ static int wl1273_fm_set_rds(struct wl1273_device *radio, unsigned int new_mode)
|
||||
}
|
||||
|
||||
if (!r)
|
||||
radio->rds_on = (new_mode == WL1273_RDS_ON) ? true : false;
|
||||
radio->rds_on = new_mode == WL1273_RDS_ON;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user