mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-02 00:32:31 -04: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:
committed by
Hans Verkuil
parent
32768975e9
commit
a5e4a49375
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user