diff options
| author | Sachin Kamat <[email protected]> | 2014-06-20 15:29:02 +0530 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2014-06-27 12:48:22 +0100 |
| commit | 656e3435752a66810ee0f8bcb8e012e9e6f26a42 (patch) | |
| tree | 44fa56b524f4ace53058b3b72e8ab037e52a907a | |
| parent | b1117f5294ed845aefa499d67ca4faf2493bdf99 (diff) | |
ASoC: tpa6130a2: Remove redundant OOM message
Let memory subsystem handle the error logging.
Signed-off-by: Sachin Kamat <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
| -rw-r--r-- | sound/soc/codecs/tpa6130a2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c index 8fc5a647453b..6fac9e034c48 100644 --- a/sound/soc/codecs/tpa6130a2.c +++ b/sound/soc/codecs/tpa6130a2.c @@ -381,10 +381,8 @@ static int tpa6130a2_probe(struct i2c_client *client, dev = &client->dev; data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL); - if (data == NULL) { - dev_err(dev, "Can not allocate memory\n"); + if (!data) return -ENOMEM; - } if (pdata) { data->power_gpio = pdata->power_gpio; |