Commit 5a9077a8 authored by Pawel Lebioda's avatar Pawel Lebioda Committed by Greg Kroah-Hartman

staging: nvec: remove unneccessary 'out of memory' message

Fix the following warning reported by checkpatch.pl:

WARNING: Possible unnecessary 'out of memory' message
811: FILE: drivers/staging/nvec/nvec.c:811
Signed-off-by: default avatarPawel Lebioda <pawel.lebioda89@gmail.com>
Acked-by: default avatarMarc Dietrich <marvin24@gmx.de>
Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aea2cda3
...@@ -806,10 +806,9 @@ static int tegra_nvec_probe(struct platform_device *pdev) ...@@ -806,10 +806,9 @@ static int tegra_nvec_probe(struct platform_device *pdev)
} }
nvec = devm_kzalloc(&pdev->dev, sizeof(struct nvec_chip), GFP_KERNEL); nvec = devm_kzalloc(&pdev->dev, sizeof(struct nvec_chip), GFP_KERNEL);
if (nvec == NULL) { if (nvec == NULL)
dev_err(&pdev->dev, "failed to reserve memory\n");
return -ENOMEM; return -ENOMEM;
}
platform_set_drvdata(pdev, nvec); platform_set_drvdata(pdev, nvec);
nvec->dev = &pdev->dev; nvec->dev = &pdev->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