linux_dsm_epyc7002/sound/soc/ux500
Julia Lawall b18e93a493 ASoC: ux500_msp_i2s: better use devm functions and fix error return code
Remove unnecessary calls to devm_kfree and replace iounmap by devm_iounmap
(and use resource_size for the third argument).  These changes make it
possible to remove the error-handling code at the end of
ux500_msp_i2s_init_msp, and all of the gotos become direct returns.

In the case of the second call to devm_kzalloc, the return variable ret was
not initialized.  Here it is changed to a direct return of -ENOMEM.

A simplified version of the semantic match that finds the second problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}

// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-08-20 20:44:28 +01:00
..
Kconfig ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
Makefile ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
mop500_ab8500.c ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
mop500_ab8500.h ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
mop500.c ASoC: Ux500: Add machine-driver 2012-06-17 20:46:12 +01:00
ux500_msp_dai.c ASoC: ux500: Include the correct header files 2012-07-26 12:58:34 +01:00
ux500_msp_dai.h ASoC: Ux500: Add MSP I2S-driver 2012-05-09 12:52:59 +01:00
ux500_msp_i2s.c ASoC: ux500_msp_i2s: better use devm functions and fix error return code 2012-08-20 20:44:28 +01:00
ux500_msp_i2s.h ASoC: ux500: Include the correct header files 2012-07-26 12:58:34 +01:00
ux500_pcm.c ASoC: dmaengine-pcm: Rename and deprecate snd_dmaengine_pcm_pointer 2012-06-20 15:38:32 +01:00
ux500_pcm.h ASoC: Ux500: Add platform-driver 2012-06-03 13:06:38 +01:00