extcon: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Jul 2014 01:07:09 +0000 (10:07 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 23 Jul 2014 01:07:09 +0000 (10:07 +0900)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message. The following
checkpatch warning is also removed.

  WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
[Acked by Charles Keepax for arizona part]
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c
drivers/extcon/extcon-max14577.c
drivers/extcon/extcon-max77693.c
drivers/extcon/extcon-max8997.c

index 0b1ee9f553780b7cf181e4b248abb4daf9dedd28..59aa51309467b2df1f2b1bc8345d0ffe39153645 100644 (file)
@@ -1117,10 +1117,8 @@ static int arizona_extcon_probe(struct platform_device *pdev)
                return -EPROBE_DEFER;
 
        info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
-       if (!info) {
-               dev_err(&pdev->dev, "Failed to allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        info->micvdd = devm_regulator_get(arizona->dev, "MICVDD");
        if (IS_ERR(info->micvdd)) {
index d49e891b5675985d7702d77ad958117a7713e4d8..7309743d0da1b494c1c864ae25edb09259932354 100644 (file)
@@ -692,10 +692,9 @@ static int max14577_muic_probe(struct platform_device *pdev)
        u8 id;
 
        info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
-       if (!info) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
+
        info->dev = &pdev->dev;
        info->max14577 = max14577;
 
index 042bf742c2070220627cba8e17ec7352133dffb5..77460f2c1ca1602ed3a6948c56d9389e0c508a4f 100644 (file)
@@ -1099,10 +1099,9 @@ static int max77693_muic_probe(struct platform_device *pdev)
 
        info = devm_kzalloc(&pdev->dev, sizeof(struct max77693_muic_info),
                                   GFP_KERNEL);
-       if (!info) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
+
        info->dev = &pdev->dev;
        info->max77693 = max77693;
        if (info->max77693->regmap_muic) {
index d22c379766dd2b00d8b865f70e04426be7311a08..75e501c980054d80bb5be4d0a8b346bd8fe5cec0 100644 (file)
@@ -661,10 +661,8 @@ static int max8997_muic_probe(struct platform_device *pdev)
 
        info = devm_kzalloc(&pdev->dev, sizeof(struct max8997_muic_info),
                            GFP_KERNEL);
-       if (!info) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!info)
                return -ENOMEM;
-       }
 
        info->dev = &pdev->dev;
        info->muic = max8997->muic;
This page took 0.033802 seconds and 5 git commands to generate.