From: Taylor Hutt Date: Wed, 18 May 2011 01:03:54 +0000 (-0700) Subject: ASoC: Max98095: Move existing NULL check before pointer dereference. X-Git-Tag: v3.0-rc1~347^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=539494253547d078089cc15490e83f6e5f2e7213;p=pandora-kernel.git 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 Acked-by: Peter Hsiang Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed