mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 22:31:32 +00:00
ASoC: sgtl5000: 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
10d95ad48b
commit
be81333415
@ -843,10 +843,8 @@ static int ldo_regulator_register(struct snd_soc_codec *codec,
|
||||
|
||||
ldo = kzalloc(sizeof(struct ldo_regulator), GFP_KERNEL);
|
||||
|
||||
if (!ldo) {
|
||||
dev_err(codec->dev, "failed to allocate ldo_regulator\n");
|
||||
if (!ldo)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ldo->desc.name = kstrdup(dev_name(codec->dev), GFP_KERNEL);
|
||||
if (!ldo->desc.name) {
|
||||
|
Loading…
Reference in New Issue
Block a user