Commit e0878c7f authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Hans Verkuil

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: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent e50f23b1
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment