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:
Ruan Jinjie 2023-08-04 14:55:22 +08:00 committed by Hans Verkuil
parent e50f23b1ca
commit e0878c7f7f

View File

@ -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;
}