Commit 60886e16 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'asoc/fix/core' into asoc-linus

parents 7c9e0617 b5c745fb
...@@ -3908,10 +3908,8 @@ int snd_soc_add_platform(struct device *dev, struct snd_soc_platform *platform, ...@@ -3908,10 +3908,8 @@ int snd_soc_add_platform(struct device *dev, struct snd_soc_platform *platform,
{ {
/* create platform component name */ /* create platform component name */
platform->name = fmt_single_name(dev, &platform->id); platform->name = fmt_single_name(dev, &platform->id);
if (platform->name == NULL) { if (platform->name == NULL)
kfree(platform);
return -ENOMEM; return -ENOMEM;
}
platform->dev = dev; platform->dev = dev;
platform->driver = platform_drv; platform->driver = platform_drv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment