ASoC: Max98095: Move existing NULL check before pointer dereference.
authorTaylor Hutt <thutt@chromium.org>
Wed, 18 May 2011 01:03:54 +0000 (18:03 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 May 2011 16:33:27 +0000 (09:33 -0700)
commit539494253547d078089cc15490e83f6e5f2e7213
treea7403953e75a747ab85f896f93e9e5b464efe225
parent34e268d87d60da7968d7300aae7d575be9d16ae7
ASoC: Max98095: Move existing NULL check before pointer dereference.

Visual inspection shows that max98095_put_eq_enum() and
max98095_put_bq_enum() each have a possible NULL deref of 'pdata'.

This change moves the NULL check above the use.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Acked-by: Peter Hsiang <Peter.Hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/max98095.c
This page took 0.025288 seconds and 5 git commands to generate.