mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 23:00:21 +00: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…
x
Reference in New Issue
Block a user