MLK-20189 sound: asoc: fix dereference before null check
authorCosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Tue, 13 Nov 2018 11:35:45 +0000 (13:35 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3a03eb33d8d56145d5e815e405a022452f8ab9b8
treedba554d42805e5bf5478e4c5d7a04667345febff
parent9094e34abc6472e4fcd61031b3f49db61689bb3d
MLK-20189 sound: asoc: fix dereference before null check

There may be a null pointer dereference, or else the comparison against
null is unnecessary.

Fixes Coverity issue CID5327850

Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
(cherry picked from commit 5e9a805edcd8e07d3587480ffb89a27ad5bc0248)
sound/soc/fsl/fsl_micfil.c