codecs: tfa9891: Hide self assign Clang warnings

Without much context to why these warnings even exist (especially with
the ambiguous comment "Avoid warning in user-space"), I'd rather play
it safe and not disturb the code but "fix" the warning.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Nathan Chancellor 2017-12-02 23:03:36 -07:00 committed by Timi
parent 2bd5927b3b
commit c5eab0c59b
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ static enum Tfa98xx_Error tfa9897_tfa_dsp_write_tables(Tfa98xx_handle_t dev_idx,
enum Tfa98xx_Error error;
/* Not used for max1! */
sample_rate=sample_rate;
sample_rate = (int)sample_rate;
error = tfa9897_dsp_write_vsfwdelay_table(dev_idx);
if (error == Tfa98xx_Error_Ok) {

View file

@ -2560,7 +2560,7 @@ enum Tfa98xx_Error tfaRunSpeakerCalibration(Tfa98xx_handle_t handle, int profile
enum Tfa98xx_Error err = Tfa98xx_Error_Ok;
int calibrateDone, spkr_count = 0;
/* Avoid warning in user-space */
profile=profile;
profile = (int)profile;
#ifdef __KERNEL__ /* Necessary otherwise we are thrown out of operating mode in kernel (because of internal clock) */
if((strstr(tfaContProfileName(handle, profile), ".cal") == NULL) && (tfa98xx_dev_family(handle) == 2))