[alsa-devel] [PATCH 4/6] ASOC: intel - hsw: fix sparse unused varible warn

Vinod Koul vinod.koul at intel.com
Fri Jun 19 20:25:29 CEST 2015


Sparse rightly complains that the variable hsw is not used so should
be removed, so remove it

sound/soc/intel/haswell/sst-haswell-pcm.c: In function ‘hsw_pcm_prepare’:
sound/soc/intel/haswell/sst-haswell-pcm.c:1349:18: warning: unused variable
‘hsw’ [-Wunused-variable]
  struct sst_hsw *hsw = pdata->hsw;

Signed-off-by: Vinod Koul <vinod.koul at intel.com>
---
 sound/soc/intel/haswell/sst-haswell-pcm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/intel/haswell/sst-haswell-pcm.c b/sound/soc/intel/haswell/sst-haswell-pcm.c
index e593e7a4b7a7..1aa819c7e09b 100644
--- a/sound/soc/intel/haswell/sst-haswell-pcm.c
+++ b/sound/soc/intel/haswell/sst-haswell-pcm.c
@@ -1346,7 +1346,6 @@ static void hsw_pcm_complete(struct device *dev)
 static int hsw_pcm_prepare(struct device *dev)
 {
 	struct hsw_priv_data *pdata = dev_get_drvdata(dev);
-	struct sst_hsw *hsw = pdata->hsw;
 	struct hsw_pcm_data *pcm_data;
 	int i, err;
 
-- 
1.9.1



More information about the Alsa-devel mailing list