From 3282998c8010f6eb42950d628f4df980da528b75 Mon Sep 17 00:00:00 2001 From: Srikant Ritolia Date: Tue, 6 Dec 2016 19:39:36 +0530 Subject: [PATCH] staging: greybus: audio_module: remove redundant OOM message All kmalloc-based functions print enough information on failure Signed-off-by: Srikant Ritolia Acked-by: Johan Hovold Acked-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_module.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c index 0269a1d..17a9948 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), -- 2.7.4