original_kernel/sound/soc/atmel
Alviro Iskandar Setiawan a8ae15ead9
ASoC: atmel: mchp-pdmc: Fix `-Wpointer-bool-conversion` warning
In function mchp_pdmc_af_put(), Intel's kernel test robot reports the
following warning:

  sound/soc/atmel/mchp-pdmc.c:186:34: warning: address of array \
  'uvalue->value.integer.value' will always evaluate to 'true' \
  [-Wpointer-bool-conversion]

This is because we are using `uvalue->value.integer.value` which its
type is `long value[128];` for conditional expression and that array
will always decay to a non-NULL pointer. Using a non-NULL pointer for
conditional expression will always evaluate to true.

Fix this by changing it to `uvalue->value.integer.value[0]` as that's
what the mchp_pdmc_af_get() function sets.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Link: https://lore.kernel.org/r/20220315001848.3763534-1-alviro.iskandar@gnuweeb.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-03-15 12:03:49 +00:00
..
Kconfig ASoC: atmel: mchp-pdmc: add PDMC driver 2022-03-08 13:38:59 +00:00
Makefile ASoC: atmel: mchp-pdmc: add PDMC driver 2022-03-08 13:38:59 +00:00
atmel-classd.c
atmel-classd.h
atmel-i2s.c
atmel-pcm-dma.c
atmel-pcm-pdc.c
atmel-pcm.h
atmel-pdmic.c
atmel-pdmic.h
atmel_ssc_dai.c
atmel_ssc_dai.h
atmel_wm8904.c
mchp-i2s-mcc.c
mchp-pdmc.c ASoC: atmel: mchp-pdmc: Fix `-Wpointer-bool-conversion` warning 2022-03-15 12:03:49 +00:00
mchp-spdifrx.c ASoC: mchp-spdifrx: fix typo 2022-03-11 13:42:28 +00:00
mchp-spdiftx.c
mikroe-proto.c ASoC: atmel: Fix error handling in snd_proto_probe 2022-03-08 12:27:51 +00:00
sam9g20_wm8731.c ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe 2022-03-07 13:14:50 +00:00
sam9x5_wm8731.c
tse850-pcm5142.c