mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
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: Chris Lapa <chris@lapa.com.au> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
3525e5c5b3
commit
e6518a4325
1 changed files with 1 additions and 3 deletions
|
@ -304,10 +304,8 @@ static int max8903_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
data = devm_kzalloc(dev, sizeof(struct max8903_data), GFP_KERNEL);
|
||||
if (data == NULL) {
|
||||
dev_err(dev, "Cannot allocate memory.\n");
|
||||
if (!data)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
data->pdata = pdev->dev.platform_data;
|
||||
data->dev = dev;
|
||||
|
|
Loading…
Reference in a new issue