Commit e6518a43 authored by Chris Lapa's avatar Chris Lapa Committed by Sebastian Reichel

max8903: remove unnecessary 'out of memory' error message.

Remove the 'out of memory' error message as it is printed by the core.
Signed-off-by: default avatarChris Lapa <chris@lapa.com.au>
Reviewed-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 3525e5c5
...@@ -304,10 +304,8 @@ static int max8903_probe(struct platform_device *pdev) ...@@ -304,10 +304,8 @@ static int max8903_probe(struct platform_device *pdev)
} }
data = devm_kzalloc(dev, sizeof(struct max8903_data), GFP_KERNEL); data = devm_kzalloc(dev, sizeof(struct max8903_data), GFP_KERNEL);
if (data == NULL) { if (!data)
dev_err(dev, "Cannot allocate memory.\n");
return -ENOMEM; return -ENOMEM;
}
data->pdata = pdev->dev.platform_data; data->pdata = pdev->dev.platform_data;
data->dev = dev; data->dev = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment