Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Srikant Ritolia and committed by
Greg Kroah-Hartman
3282998c 9b33f918

+1 -3
+1 -3
drivers/staging/greybus/audio_module.c
··· 207 207 struct gbaudio_data_connection *dai; 208 208 209 209 dai = devm_kzalloc(gbmodule->dev, sizeof(*dai), GFP_KERNEL); 210 - if (!dai) { 211 - dev_err(gbmodule->dev, "DAI Malloc failure\n"); 210 + if (!dai) 212 211 return -ENOMEM; 213 - } 214 212 215 213 connection = gb_connection_create_offloaded(bundle, 216 214 le16_to_cpu(cport_desc->id),