mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 09:46:41 +07:00
ASoC: tpa6130a2: Remove redundant OOM message
Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
b1117f5294
commit
656e343575
@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client,
|
|||||||
dev = &client->dev;
|
dev = &client->dev;
|
||||||
|
|
||||||
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
|
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
|
||||||
if (data == NULL) {
|
if (!data)
|
||||||
dev_err(dev, "Can not allocate memory\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
if (pdata) {
|
if (pdata) {
|
||||||
data->power_gpio = pdata->power_gpio;
|
data->power_gpio = pdata->power_gpio;
|
||||||
|
Loading…
Reference in New Issue
Block a user