linux/sound/soc
Julien Brunel 71dc525c5d ALSA: sound/soc/at32: Useless NULL test
The test (ssc != NULL) can only be reached if the call to the function
ssc_request, the result of which ssc is assigned, succeeds. Moreover,
two statements assign NULL to ssc just before a return, which is useless
since it is a local variable. So, we suggest to delete the test and
the two assignments.

A simplified version of the semantic match that finds this problem is
as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@bad_null_test@
expression x,E;
@@
x = ssc_request(...)
... when != x = E
* x != NULL
// </smpl>

Signed-off-by: Julien Brunel <brunel@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2008-10-10 13:41:40 +02:00
..
at32 ALSA: sound/soc/at32: Useless NULL test 2008-10-10 13:41:40 +02:00
at91 ALSA: ASoC: Convert wm8731 to a new-style i2c driver 2008-09-04 10:34:25 +02:00
au1x ALSA: Au1xpsc: psc not disabled when TX is idle 2008-07-15 15:08:28 +02:00
blackfin sound: ASoC: Blackfin: add Blackfin arch ASoC Kconfig and Makefile 2008-09-09 09:11:25 +02:00
codecs ALSA: ASoC: Convert tlv320aic3x to a new-style i2c driver (v2) 2008-09-23 08:18:26 +02:00
davinci ALSA: ASoC: Convert tlv320aic3x to a new-style i2c driver (v2) 2008-09-23 08:18:26 +02:00
fsl ALSA: ASoC - fix DMA channel selection in Freescale MPC8610 sound drivers 2008-08-13 11:46:22 +02:00
omap ALSA: ASoC: Convert tlv320aic3x to a new-style i2c driver (v2) 2008-09-23 08:18:26 +02:00
pxa ALSA: Separate common pxa2xx-pcm code 2008-09-23 08:18:10 +02:00
s3c24xx sound: ASoC: Convert neo1973/lm4857 to a new-style i2c driver 2008-09-09 09:11:11 +02:00
sh ALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:46 +02:00
Kconfig sound: ASoC: Fix dependency on AC97_BUS 2008-09-23 08:18:16 +02:00
Makefile sound: ASoC: Blackfin: Include Blackfin architecture support in build 2008-09-09 09:11:28 +02:00
soc-core.c ALSA: ASoC: Use codec digital mute when stopping playback 2008-09-09 09:11:59 +02:00
soc-dapm.c ALSA: ASoC: Convert DAPM pop time configuration to debugfs 2008-08-29 10:06:14 +02:00