ASoC: odroidx2_max98090: Drop unnecessary of_node check
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Jun 2014 13:57:01 +0000 (15:57 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:51 +0000 (11:59 +0900)
There is no way we can have probe() called with dev->of_node being
NULL on Exynos, so remove the unneeded check.

Change-Id: Icc815a56d2c0da14240dabc2097836e59117ccac
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
sound/soc/samsung/odroidx2_max98090.c

index db535f3..98caf93 100644 (file)
@@ -81,9 +81,6 @@ static int odroidx2_audio_probe(struct platform_device *pdev)
        struct device_node *np = pdev->dev.of_node;
        struct snd_soc_card *card = &odroidx2;
 
-       if (!np)
-               return -ENODEV;
-
        card->dev = &pdev->dev;
 
        odroidx2_dai[0].codec_of_node = of_parse_phandle(np,