ASoC: max98504A: fix build warning 15/89515/1
authorInki Dae <inki.dae@samsung.com>
Mon, 26 Sep 2016 01:58:22 +0000 (10:58 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 26 Sep 2016 01:58:22 +0000 (10:58 +0900)
This patch fixes below build warnings,
     sound/soc/codecs/max98504a.c:271:1: warning: label 'err_access'
defined but not used [-Wunused-label]
     sound/soc/codecs/max98504a.c:173:15: warning: unused variable
'value' [-Wunused-variable]

Change-Id: I74bbe99e44591052daa05eadcbfaa795fb0e99d4
Signed-off-by: Inki Dae <inki.dae@samsung.com>
sound/soc/codecs/max98504a.c

index 6e963c12318c6ec49fe72c24aa6b7db6d1535216..43328aeb0551c4cb81760806297bb87297a190f2 100644 (file)
@@ -170,7 +170,6 @@ static int max98504_probe(struct max98504_priv *max98504)
 
        u8 regval;
        int ret;
-       unsigned int value;
 
        msg_maxim("\n");
 
@@ -267,9 +266,6 @@ static int max98504_probe(struct max98504_priv *max98504)
        #endif
 
        return ret;
-
-err_access:
-       return ret;
 }
 
 int max98504_set_speaker_status(int OnOff)