Skip to content
Commit 53949425 authored by Taylor Hutt's avatar Taylor Hutt Committed by Mark Brown
Browse files

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: default avatarTaylor Hutt <thutt@chromium.org>
Acked-by: default avatarPeter Hsiang <Peter.Hsiang@maxim-ic.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 34e268d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment