media: dvb-frontends: cxd2880: return 0 instead of 'ret'.
Since 'ret' is known to be 0, just return '0'. This fixes 10 smatch warnings: cxd2880_tnrdmd_dvbt.c:836 cxd2880_tnrdmd_dvbt_check_demod_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt.c:841 cxd2880_tnrdmd_dvbt_check_demod_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt.c:896 cxd2880_tnrdmd_dvbt_check_ts_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt.c:901 cxd2880_tnrdmd_dvbt_check_ts_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt.c:904 cxd2880_tnrdmd_dvbt_check_ts_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt2.c:1027 cxd2880_tnrdmd_dvbt2_check_demod_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt2.c:1032 cxd2880_tnrdmd_dvbt2_check_demod_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt2.c:1087 cxd2880_tnrdmd_dvbt2_check_ts_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt2.c:1092 cxd2880_tnrdmd_dvbt2_check_ts_lock() warn: missing error code? 'ret' cxd2880_tnrdmd_dvbt2.c:1095 cxd2880_tnrdmd_dvbt2_check_ts_lock() warn: missing error code? 'ret' Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Yasunari Takiguchi <Yasunari.Takiguchi@sony.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
Родитель
a0ccbc65bc
Коммит
e670d7e3c5
|
@ -833,12 +833,12 @@ int cxd2880_tnrdmd_dvbt_check_demod_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sync_stat == 6) {
|
if (sync_stat == 6) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
|
@ -854,7 +854,7 @@ int cxd2880_tnrdmd_dvbt_check_demod_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cxd2880_tnrdmd_dvbt_check_ts_lock(struct cxd2880_tnrdmd
|
int cxd2880_tnrdmd_dvbt_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
|
@ -893,15 +893,15 @@ int cxd2880_tnrdmd_dvbt_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ts_lock) {
|
if (ts_lock) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
||||||
return ret;
|
return 0;
|
||||||
} else if (!unlock_detected) {
|
} else if (!unlock_detected) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
|
@ -915,5 +915,5 @@ int cxd2880_tnrdmd_dvbt_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1024,12 +1024,12 @@ int cxd2880_tnrdmd_dvbt2_check_demod_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sync_stat == 6) {
|
if (sync_stat == 6) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
|
@ -1045,7 +1045,7 @@ int cxd2880_tnrdmd_dvbt2_check_demod_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
|
int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
|
@ -1084,15 +1084,15 @@ int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ts_lock) {
|
if (ts_lock) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_LOCKED;
|
||||||
return ret;
|
return 0;
|
||||||
} else if (!unlock_detected) {
|
} else if (!unlock_detected) {
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
|
@ -1106,7 +1106,7 @@ int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
|
||||||
else
|
else
|
||||||
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
*lock = CXD2880_TNRDMD_LOCK_RESULT_NOTDETECT;
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cxd2880_tnrdmd_dvbt2_set_plp_cfg(struct cxd2880_tnrdmd
|
int cxd2880_tnrdmd_dvbt2_set_plp_cfg(struct cxd2880_tnrdmd
|
||||||
|
|
Загрузка…
Ссылка в новой задаче