diff mbox

ASoC: Intel: remove an unused struct member

Message ID 20150128064210.GA30893@mwanda (mailing list archive)
State Accepted
Commit c33bd08d65d19288faaf779ff42453075da8f3ba
Headers show

Commit Message

Dan Carpenter Jan. 28, 2015, 6:42 a.m. UTC
We never set the ->scratch pointer, so let's delete it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Comments

Mark Brown Jan. 28, 2015, 11:36 a.m. UTC | #1
On Wed, Jan 28, 2015 at 09:42:10AM +0300, Dan Carpenter wrote:
> We never set the ->scratch pointer, so let's delete it.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index eeef9a5..78daa46 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -277,7 +277,6 @@  struct sst_hsw {
 	/* FW config */
 	struct sst_hsw_ipc_fw_ready fw_ready;
 	struct sst_hsw_ipc_fw_version version;
-	struct sst_module *scratch;
 	bool fw_done;
 	struct sst_fw *sst_fw;
 
@@ -2135,7 +2134,6 @@  void sst_hsw_dsp_free(struct device *dev, struct sst_pdata *pdata)
 	dma_free_coherent(hsw->dsp->dma_dev, SST_HSW_DX_CONTEXT_SIZE,
 			hsw->dx_context, hsw->dx_context_paddr);
 	sst_dsp_free(hsw->dsp);
-	kfree(hsw->scratch);
 	kthread_stop(hsw->tx_thread);
 	kfree(hsw->msg);
 }