OSDN Git Service

tfa98xx: fix self assigment errors
authorDemon Singur <demonsingur@gmail.com>
Sat, 10 Mar 2018 20:47:56 +0000 (20:47 +0000)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 15:24:32 +0000 (16:24 +0100)
Change-Id: Ie87226c26ea07a5284fdb61fee6802817c00006b

sound/soc/codecs/tfa98xx/tfa9897_init.c
sound/soc/codecs/tfa98xx/tfa_dsp.c

index a1267bf..164d364 100644 (file)
@@ -108,7 +108,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)
index 5631bce..f5a701c 100644 (file)
@@ -2594,7 +2594,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) */
        /* SL: In kernel, there's no clock available during cold start, therefore power down chip */