techpack: audio: tfa98xx: fix self assigment errors
Clang warns:
./techpack/audio/asoc/codecs/tfa98xx/tfa_dsp.c:2543:9: warning: explicitly assigning
value of variable of type 'int' to itself [-Wself-assign]
profile=profile;
~~~~~~~^~~~~~~~
./techpack/audio/asoc/codecs/tfa98xx/tfa9897_init.c:110:13: warning: explicitly assigning
value of variable of type 'int' to itself [-Wself-assign]
sample_rate=sample_rate;
~~~~~~~~~~~^~~~~~~~~~~~
Change-Id: Ie87226c26ea07a5284fdb61fee6802817c00006b
diff --git a/techpack/audio/asoc/codecs/tfa98xx/tfa9897_init.c b/techpack/audio/asoc/codecs/tfa98xx/tfa9897_init.c
index 3d5e78d..c15d057 100644
--- a/techpack/audio/asoc/codecs/tfa98xx/tfa9897_init.c
+++ b/techpack/audio/asoc/codecs/tfa98xx/tfa9897_init.c
@@ -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;
+ (void)sample_rate;
error = tfa9897_dsp_write_vsfwdelay_table(dev_idx);
if (error == Tfa98xx_Error_Ok) {
diff --git a/techpack/audio/asoc/codecs/tfa98xx/tfa_dsp.c b/techpack/audio/asoc/codecs/tfa98xx/tfa_dsp.c
index 21c32ec..e44fe46 100644
--- a/techpack/audio/asoc/codecs/tfa98xx/tfa_dsp.c
+++ b/techpack/audio/asoc/codecs/tfa98xx/tfa_dsp.c
@@ -2540,7 +2540,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;
+ (void)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))