Commit c6c092dc authored by Markus Elfring's avatar Markus Elfring Committed by Kalle Valo

ssb: Delete an error message for a failed memory allocation in ssb_devices_register()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarMichael Büsch <m@bues.ch>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b9b23872
...@@ -480,7 +480,6 @@ static int ssb_devices_register(struct ssb_bus *bus) ...@@ -480,7 +480,6 @@ static int ssb_devices_register(struct ssb_bus *bus)
devwrap = kzalloc(sizeof(*devwrap), GFP_KERNEL); devwrap = kzalloc(sizeof(*devwrap), GFP_KERNEL);
if (!devwrap) { if (!devwrap) {
ssb_err("Could not allocate device\n");
err = -ENOMEM; err = -ENOMEM;
goto error; goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment