aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/baytrail
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2018-12-16 16:49:06 -0600
committerMark Brown <broonie@kernel.org>2019-01-03 16:34:11 +0000
commit060d35be2dfa9202d37f967fd20f133c530505d2 (patch)
tree70f3ba73cc55f71279b6fc486a9bd10170b2bbc8 /sound/soc/intel/baytrail
parentASoC: Intel: Haswell: assign booleans to true/false (diff)
downloadlinux-dev-060d35be2dfa9202d37f967fd20f133c530505d2.tar.xz
linux-dev-060d35be2dfa9202d37f967fd20f133c530505d2.zip
ASoC: Intel: Baytrail: remove unneeded variable
Detected with Coccinelle Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/baytrail')
-rw-r--r--sound/soc/intel/baytrail/sst-baytrail-ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c
index 260447da32b8..2cd8f9668b50 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c
@@ -278,7 +278,6 @@ static int sst_byt_process_notification(struct sst_byt *byt,
struct sst_byt_stream *stream;
u64 header;
u8 msg_id, stream_id;
- int handled = 1;
header = sst_dsp_shim_read64_unlocked(sst, SST_IPCD);
msg_id = sst_byt_header_msg_id(header);
@@ -298,7 +297,7 @@ static int sst_byt_process_notification(struct sst_byt *byt,
break;
}
- return handled;
+ return 1;
}
static irqreturn_t sst_byt_irq_thread(int irq, void *context)