diff options
| -rw-r--r-- | drivers/staging/greybus/audio_module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c index 0269a1d31285..17a9948b1ba1 100644 --- a/drivers/staging/greybus/audio_module.c +++ b/drivers/staging/greybus/audio_module.c | |||
| @@ -207,10 +207,8 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule, | |||
| 207 | struct gbaudio_data_connection *dai; | 207 | struct gbaudio_data_connection *dai; |
| 208 | 208 | ||
| 209 | dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL); | 209 | dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL); |
| 210 | if (!dai) { | 210 | if (!dai) |
| 211 | dev_err(gbmodule->dev, "DAI Malloc failure\n"); | ||
| 212 | return -ENOMEM; | 211 | return -ENOMEM; |
| 213 | } | ||
| 214 | 212 | ||
| 215 | connection = gb_connection_create_offloaded(bundle, | 213 | connection = gb_connection_create_offloaded(bundle, |
| 216 | le16_to_cpu(cport_desc->id), | 214 | le16_to_cpu(cport_desc->id), |
