staging: greybus: audio_module: remove redundant OOM message
authorSrikant Ritolia <s.ritolia@samsung.com>
Tue, 6 Dec 2016 14:09:36 +0000 (19:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Dec 2016 10:41:17 +0000 (11:41 +0100)
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>
drivers/staging/greybus/audio_module.c

index 0269a1d3128508fcca81b3fc149f225a2dec7083..17a9948b1ba1e2c26007f922242019fb63f6567c 100644 (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),