ASoC: tegra: Remove unnecessary 'out of memory' message
authorCodrut Grosu <codrut.cristian.grosu@gmail.com>
Sat, 25 Feb 2017 11:18:08 +0000 (13:18 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 12:50:49 +0000 (13:50 +0100)
This was reported by checkpatch.pl

Signed-off-by: Codrut GROSU <codrut.cristian.grosu@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
14 files changed:
sound/soc/tegra/tegra20_ac97.c
sound/soc/tegra/tegra20_das.c
sound/soc/tegra/tegra20_i2s.c
sound/soc/tegra/tegra20_spdif.c
sound/soc/tegra/tegra30_ahub.c
sound/soc/tegra/tegra30_i2s.c
sound/soc/tegra/tegra_alc5632.c
sound/soc/tegra/tegra_max98090.c
sound/soc/tegra/tegra_rt5640.c
sound/soc/tegra/tegra_sgtl5000.c
sound/soc/tegra/tegra_wm8753.c
sound/soc/tegra/tegra_wm8903.c
sound/soc/tegra/tegra_wm9712.c
sound/soc/tegra/trimslice.c

index a68368edab9c5df89a32e3678f7c9a65988b5463..affad46bf1887d08b78fb89394168ca36bef2fcc 100644 (file)
@@ -318,7 +318,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
        ac97 = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_ac97),
                            GFP_KERNEL);
        if (!ac97) {
-               dev_err(&pdev->dev, "Can't allocate tegra20_ac97\n");
                ret = -ENOMEM;
                goto err;
        }
index 89add13c31cfc08259bd97d91555b70886117b77..6d4a2774135e2e547f77847b9993630ebb65ab51 100644 (file)
@@ -142,7 +142,6 @@ static int tegra20_das_probe(struct platform_device *pdev)
 
        das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL);
        if (!das) {
-               dev_err(&pdev->dev, "Can't allocate tegra20_das\n");
                ret = -ENOMEM;
                goto err;
        }
index 14106fa82bca3ed821c2a2ad9977c2856e37bbf8..26253c2849e7945acaf69f767d9f23dbaac6850b 100644 (file)
@@ -345,7 +345,6 @@ static int tegra20_i2s_platform_probe(struct platform_device *pdev)
 
        i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_i2s), GFP_KERNEL);
        if (!i2s) {
-               dev_err(&pdev->dev, "Can't allocate tegra20_i2s\n");
                ret = -ENOMEM;
                goto err;
        }
index a0c3640572b98a80a48601093d3848d2341a8509..767c0491e11abecf2545f574ac28ff6cdc2e0e29 100644 (file)
@@ -271,10 +271,9 @@ static int tegra20_spdif_platform_probe(struct platform_device *pdev)
 
        spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif),
                             GFP_KERNEL);
-       if (!spdif) {
-               dev_err(&pdev->dev, "Can't allocate tegra20_spdif\n");
+       if (!spdif)
                return -ENOMEM;
-       }
+
        dev_set_drvdata(&pdev->dev, spdif);
 
        spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out");
index fef3b9a21a667304ca94579c5511c6ea3f58c073..d7494c0e9053324436db887637008afcb7018286 100644 (file)
@@ -560,10 +560,8 @@ static int tegra30_ahub_probe(struct platform_device *pdev)
 
        ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub),
                            GFP_KERNEL);
-       if (!ahub) {
-               dev_err(&pdev->dev, "Can't allocate tegra30_ahub\n");
+       if (!ahub)
                return -ENOMEM;
-       }
        dev_set_drvdata(&pdev->dev, ahub);
 
        ahub->soc_data = soc_data;
index 8e55583aa104e1c847b2c64700b90a564378ddf4..b2b279c96029d90e5039701b5d8e2c955db2d43c 100644 (file)
@@ -385,7 +385,6 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev)
 
        i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_i2s), GFP_KERNEL);
        if (!i2s) {
-               dev_err(&pdev->dev, "Can't allocate tegra30_i2s\n");
                ret = -ENOMEM;
                goto err;
        }
index eead6e7f205bedb88e992f55d6d7ab1de9bb75e2..0509902512ccd38a02376c0dc41a603d75f9a572 100644 (file)
@@ -169,10 +169,8 @@ static int tegra_alc5632_probe(struct platform_device *pdev)
 
        alc5632 = devm_kzalloc(&pdev->dev,
                        sizeof(struct tegra_alc5632), GFP_KERNEL);
-       if (!alc5632) {
-               dev_err(&pdev->dev, "Can't allocate tegra_alc5632\n");
+       if (!alc5632)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index a403db6d563e7cdaa2f0248212a40a3404b79d05..c34a54d6e8121b9a6ba6c2b996112908eac25778 100644 (file)
@@ -225,10 +225,8 @@ static int tegra_max98090_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev,
                        sizeof(struct tegra_max98090), GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_max98090\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index 25b9fc03ba6232a821c6730643e123bf8cb76c77..93a356802345aeefd00c4171fd55032c9802e15c 100644 (file)
@@ -170,10 +170,8 @@ static int tegra_rt5640_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev,
                        sizeof(struct tegra_rt5640), GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_rt5640\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index 4bbab098f50b92131c0c47f029a2edff8d16a6b1..6dda01f6998349d6d6f80d629af08480392bf776 100644 (file)
@@ -120,10 +120,8 @@ static int tegra_sgtl5000_driver_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_sgtl5000),
                               GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_sgtl5000 struct\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index bdedd1028569a68362c8bdeaf036fe0931d8b43a..d0ab0026a4cd879e906d388979d0f02af52d0c56 100644 (file)
@@ -128,10 +128,8 @@ static int tegra_wm8753_driver_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8753),
                               GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_wm8753 struct\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index 2013e9c4bba0cfe32572997094243008a5c01b4c..dbfb49298ae8bea177237482f9d8dc58169bdf1e 100644 (file)
@@ -248,10 +248,8 @@ static int tegra_wm8903_driver_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8903),
                               GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_wm8903 struct\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index 6492f8143ff1f172d3bcd5007b3ea1049cdc9e2f..c9cd2243262715ecfd929b44c6e7c99dee1d7aac 100644 (file)
@@ -77,10 +77,8 @@ static int tegra_wm9712_driver_probe(struct platform_device *pdev)
 
        machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712),
                               GFP_KERNEL);
-       if (!machine) {
-               dev_err(&pdev->dev, "Can't allocate tegra_wm9712 struct\n");
+       if (!machine)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);
index 870f84ab50054ece92d3b42786ec629727d4c044..c9dcad9bb93123b6b901ad3a3db33bfad0f3b19e 100644 (file)
@@ -123,10 +123,8 @@ static int tegra_snd_trimslice_probe(struct platform_device *pdev)
 
        trimslice = devm_kzalloc(&pdev->dev, sizeof(struct tegra_trimslice),
                                 GFP_KERNEL);
-       if (!trimslice) {
-               dev_err(&pdev->dev, "Can't allocate tegra_trimslice\n");
+       if (!trimslice)
                return -ENOMEM;
-       }
 
        card->dev = &pdev->dev;
        platform_set_drvdata(pdev, card);