summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorSrikant Ritolia <s.ritolia@samsung.com>2016-12-06 19:39:36 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-12-07 11:41:17 +0100
commit3282998c8010f6eb42950d628f4df980da528b75 (patch)
treea931caa7bfbd1ba1bfc195288bf3c89e7d565963 /drivers/staging/greybus
parent9b33f918c0c1239719d4bc2313125d9bb59e8305 (diff)
staging: greybus: audio_module: remove redundant OOM message
All kmalloc-based functions print enough information on failure Signed-off-by: Srikant Ritolia <s.ritolia@samsung.com> Acked-by: Johan Hovold <johan@kernel.org> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/audio_module.c4
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,
struct gbaudio_data_connection *dai;
dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL);
- if (!dai) {
- dev_err(gbmodule->dev, "DAI Malloc failure\n");
+ if (!dai)
return -ENOMEM;
- }
connection = gb_connection_create_offloaded(bundle,
le16_to_cpu(cport_desc->id),