Skip to content

Commit

Permalink
soc: samsung: pmu: Remove messages for failed memory allocation
Browse files Browse the repository at this point in the history
Memory subsystem already prints message about failed memory
allocation, there is no need to do it in the driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
  • Loading branch information
Marek Szyprowski authored and Krzysztof Kozlowski committed Jan 20, 2017
1 parent ec7cc5b commit 1da6de3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/soc/samsung/exynos-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ static int exynos_pmu_probe(struct platform_device *pdev)
pmu_context = devm_kzalloc(&pdev->dev,
sizeof(struct exynos_pmu_context),
GFP_KERNEL);
if (!pmu_context) {
dev_err(dev, "Cannot allocate memory.\n");
if (!pmu_context)
return -ENOMEM;
}
pmu_context->dev = dev;
pmu_context->pmu_data = of_device_get_match_data(dev);

Expand Down

0 comments on commit 1da6de3

Please sign in to comment.