summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-06-12 15:50:48 +0200
committerMarek Szyprowski <m.szyprowski@samsung.com>2014-06-17 02:33:28 -0700
commit4b882bb2ff52ce2587ea6c0ee41efafefc9ff49b (patch)
tree6250569c9fc58d8c4566de76abad2898f137cc62 /sound
parent925348a98c1a83525a108e38e426401cab0dac1f (diff)
downloadlinux-3.10-4b882bb2ff52ce2587ea6c0ee41efafefc9ff49b.tar.gz
linux-3.10-4b882bb2ff52ce2587ea6c0ee41efafefc9ff49b.tar.bz2
linux-3.10-4b882bb2ff52ce2587ea6c0ee41efafefc9ff49b.zip
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 <s.nawrocki@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/odroidx2_max98090.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c
index 4ac69024619..db535f350eb 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);