]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: fsl_sai: Don't use plain integer as NULL pointer
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 21 Jul 2022 10:29:49 +0000 (18:29 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jul 2022 12:38:48 +0000 (13:38 +0100)
Fix sparse warning:
sound/soc/fsl/fsl_sai.c:64:39: sparse: warning: Using plain integer as NULL pointer

Fixes: c0cc43bf8378 ("ASoc: fsl_sai: Add pinctrl operation for PDM and DSD")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1658399393-28777-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c

index 974ba0780b1987bfafef69ce86479fc8ac6c4821..7523bb944b216da4c601e8c5332683fa669fa8cd 100644 (file)
@@ -61,7 +61,7 @@ static inline bool fsl_sai_dir_is_synced(struct fsl_sai *sai, int dir)
 
 static struct pinctrl_state *fsl_sai_get_pins_state(struct fsl_sai *sai, u32 bclk)
 {
-       struct pinctrl_state *state = 0;
+       struct pinctrl_state *state = NULL;
 
        if (sai->is_pdm_mode) {
                /* DSD512@44.1kHz, DSD512@48kHz */