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>
This commit is contained in:
Srikant Ritolia 2016-12-06 19:39:36 +05:30 committed by Greg Kroah-Hartman
parent 9b33f918c0
commit 3282998c80

View file

@ -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),