[alsa-devel] [PATCH 1/2] ASoC: fsl: imx-sgtl5000: No need to initialize local variable data
Philipp Zabel
p.zabel at pengutronix.de
Thu Jan 30 10:47:17 CET 2014
The first access to this variable is an assignment to the result of a
kzalloc function call. Remove the superfluous initialisation.
Signed-off-by: Philipp Zabel <p.zabel at pengutronix.de>
---
sound/soc/fsl/imx-sgtl5000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index f2beae7..3e60b4c 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -62,7 +62,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
struct device_node *ssi_np, *codec_np;
struct platform_device *ssi_pdev;
struct i2c_client *codec_dev;
- struct imx_sgtl5000_data *data = NULL;
+ struct imx_sgtl5000_data *data;
int int_port, ext_port;
int ret;
--
1.8.5.3
More information about the Alsa-devel
mailing list