mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
media: dvb-frontends: Remove redundant ternary operators
For ternary operators in the form of a ? true : false, if a itself returns a boolean result, the ternary operator can be omitted. Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
32768975e9
commit
a5e4a49375
2 changed files with 2 additions and 3 deletions
|
|
@ -1270,7 +1270,7 @@ static const u16 nicam_presc_table_val[43] = {
|
|||
TODO: check ignoring single/multimaster is ok for AUD access ?
|
||||
*/
|
||||
|
||||
#define DRXJ_ISAUDWRITE(addr) (((((addr)>>16)&1) == 1) ? true : false)
|
||||
#define DRXJ_ISAUDWRITE(addr) ((((addr) >> 16) & 1) == 1)
|
||||
#define DRXJ_DAP_AUDTRIF_TIMEOUT 80 /* millisec */
|
||||
/*============================================================================*/
|
||||
|
||||
|
|
|
|||
|
|
@ -6324,8 +6324,7 @@ static int drxk_set_parameters(struct dvb_frontend *fe)
|
|||
case SYS_DVBC_ANNEX_C:
|
||||
if (!state->m_has_dvbc)
|
||||
return -EINVAL;
|
||||
state->m_itut_annex_c = (delsys == SYS_DVBC_ANNEX_C) ?
|
||||
true : false;
|
||||
state->m_itut_annex_c = delsys == SYS_DVBC_ANNEX_C;
|
||||
if (state->m_itut_annex_c)
|
||||
setoperation_mode(state, OM_QAM_ITU_C);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue