ASoC: soc-cache: dereferencing before checking
authorDan Carpenter <error27@gmail.com>
Mon, 7 Feb 2011 19:01:41 +0000 (22:01 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 Feb 2011 11:27:45 +0000 (11:27 +0000)
The patch c358e640a66 "ASoC: soc-cache: Add trace event for
snd_soc_cache_sync()" introduced a dereference of "codec->cache_ops"
before we had checked it for NULL.

I pulled the check forward, and then pulled everything in an indent
level.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-cache.c

Simple merge