Skip to content

Commit

Permalink
mfd: sec: Remove unnecessary out of memory message
Browse files Browse the repository at this point in the history
There is no need to print additional ENOMEM message for
sec_platform_data allocation failure.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Krzysztof Kozlowski authored and Lee Jones committed Mar 3, 2015
1 parent ef9c80b commit 82a00c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mfd/sec-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,8 @@ static struct sec_platform_data *sec_pmic_i2c_parse_dt_pdata(
struct sec_platform_data *pd;

pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
if (!pd) {
dev_err(dev, "could not allocate memory for pdata\n");
if (!pd)
return ERR_PTR(-ENOMEM);
}

/*
* ToDo: the 'wakeup' member in the platform data is more of a linux
Expand Down

0 comments on commit 82a00c4

Please sign in to comment.