ASoC: Intel: fix warning reported by static check tool smatch
authorLu, Han <han.lu@intel.com>
Fri, 27 Mar 2015 07:03:57 +0000 (15:03 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 16:25:39 +0000 (09:25 -0700)
commit2c0ed6349287a15f7be73bba00e520106087cd1b
tree7dcc1632aa1ad2496ee5eb94e81f690756084ff6
parent5d5b275d727753372f0a390b4121738d073f3e94
ASoC: Intel: fix warning reported by static check tool smatch

The smatch tool report warning:
  ...
    CHECK   sound/soc/intel/sst-haswell-pcm.c
  sound/soc/intel/sst-haswell-pcm.c:1110 hsw_pcm_probe() error: buffer overflow\
'hsw_dais' 4 <= 4
  sound/soc/intel/sst-haswell-pcm.c:1112 hsw_pcm_probe() error: buffer overflow\
'hsw_dais' 4 <= 4
  ...
fix it by use its own struct member for post-process module, rather than sharing
unused pcm member.

Signed-off-by: Lu, Han <han.lu@intel.com>
Acked-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-haswell-pcm.c