ALSA: drivers: Remove build warnings 60/159760/2
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 13 Nov 2017 02:25:49 +0000 (11:25 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 13 Nov 2017 04:50:26 +0000 (13:50 +0900)
Remove build warnings like Wunused-variable, Wdiscarded-qualifiers.

Change-Id: I90c58e93f571af03aba322d989691bf2872c784f
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
sound/drivers/saudio.c

index 0a1d035..14e523c 100644 (file)
@@ -215,7 +215,6 @@ static int saudio_snd_card_free(const struct snd_saudio *saudio);
 static int saudio_clear_cmd(uint32_t dst, uint32_t channel)
 {
        int result = 0;
-       int i = 0;
        struct sblock blk = { 0 };
        do {
                result = sblock_receive(dst, channel,  (struct sblock *)&blk, 0);
@@ -373,7 +372,7 @@ static struct snd_pcm_hardware snd_card_saudio_capture = {
 
 static int snd_card_saudio_pcm_open(struct snd_pcm_substream *substream)
 {
-       const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+       struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
        const int stream_id = substream->pstr->stream;
        const int dev = substream->pcm->device;
        struct snd_pcm_runtime *runtime = substream->runtime;
@@ -436,7 +435,7 @@ static int snd_card_saudio_pcm_open(struct snd_pcm_substream *substream)
 
 static int snd_card_saudio_pcm_close(struct snd_pcm_substream *substream)
 {
-       const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+       struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
        const int stream_id = substream->pstr->stream;
        const int dev = substream->pcm->device;
        struct saudio_dev_ctrl *dev_ctrl = NULL;
@@ -553,7 +552,7 @@ static int saudio_cmd_prepare_process(struct saudio_dev_ctrl *dev_ctrl,
                                      struct saudio_msg *msg);
 static int snd_card_saudio_pcm_prepare(struct snd_pcm_substream *substream)
 {
-       const struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
+       struct snd_saudio *saudio = snd_pcm_substream_chip(substream);
        const int stream_id = substream->pstr->stream;
        const int dev = substream->pcm->device;
        struct saudio_dev_ctrl *dev_ctrl = NULL;
@@ -1270,7 +1269,6 @@ static void saudio_work_card_free_handler(struct work_struct *data)
 static int snd_saudio_probe(struct platform_device *devptr)
 {
        struct snd_saudio *saudio = NULL;
-       static pid_t thread_id = (pid_t) - 1;
 #ifdef CONFIG_OF
        int ret, id, ctrl_ch, playback_ch, capture_ch, monitor_ch;
        const char *name = NULL;