[4/6] ASOC: intel - hsw: fix sparse unused varible warn
diff mbox

Message ID 1434738331-12518-5-git-send-email-vinod.koul@intel.com
State New
Headers show

Commit Message

Vinod Koul June 19, 2015, 6:25 p.m. UTC
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@intel.com>
 sound/soc/intel/haswell/sst-haswell-pcm.c | 1 -
 1 file changed, 1 deletion(-)

diff mbox

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;