ASoC: odroidx2_max98090: Drop unneeded assignment to NULL
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Jun 2014 13:50:48 +0000 (15:50 +0200)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:16:07 +0000 (15:16 +0900)
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>
sound/soc/samsung/odroidx2_max98090.c

index 4ac6902..db535f3 100644 (file)
@@ -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);