From 717ca75d70bee9e7509a89ac85eafaa559f71758 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Thu, 12 Jun 2014 15:50:48 +0200 Subject: [PATCH] ASoC: odroidx2_max98090: Drop unneeded assignment to NULL odroidx2_dai is a static variable so reinitialization of some of its members to NULL can be removed. Change-Id: I8448a6166a5008640ef3fd5d467acbcbc8e3cea9 Signed-off-by: Sylwester Nawrocki --- sound/soc/samsung/odroidx2_max98090.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c index 4ac6902..db535f3 100644 --- a/sound/soc/samsung/odroidx2_max98090.c +++ b/sound/soc/samsung/odroidx2_max98090.c @@ -86,7 +86,6 @@ static int odroidx2_audio_probe(struct platform_device *pdev) card->dev = &pdev->dev; - odroidx2_dai[0].codec_name = NULL; odroidx2_dai[0].codec_of_node = of_parse_phandle(np, "samsung,audio-codec", 0); if (!odroidx2_dai[0].codec_of_node) { @@ -95,7 +94,6 @@ static int odroidx2_audio_probe(struct platform_device *pdev) return -EINVAL; } - odroidx2_dai[0].cpu_name = NULL; odroidx2_dai[0].cpu_of_node = of_parse_phandle(np, "samsung,i2s-controller", 0); if (!odroidx2_dai[0].cpu_of_node) { @@ -107,7 +105,6 @@ static int odroidx2_audio_probe(struct platform_device *pdev) odroidx2_dai[0].platform_of_node = odroidx2_dai[0].cpu_of_node; /* Configure the secondary audio interface with the same codec dai */ - odroidx2_dai[1].codec_name = NULL; odroidx2_dai[1].codec_of_node = odroidx2_dai[0].codec_of_node; return snd_soc_register_card(card); -- 2.7.4