From: Markus Elfring Date: Wed, 17 May 2017 16:12:16 +0000 (+0200) Subject: ssb: Delete an error message for a failed memory allocation in ssb_devices_register() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6c092dcb21e4def00f2b5e077d03434c38acfe4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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.pdf Signed-off-by: Markus Elfring Acked-by: Michael Büsch Signed-off-by: Kalle Valo --- diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index d1a750760cf3..65420a9f0e82 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -480,7 +480,6 @@ static int ssb_devices_register(struct ssb_bus *bus) devwrap = kzalloc(sizeof(*devwrap), GFP_KERNEL); if (!devwrap) { - ssb_err("Could not allocate device\n"); err = -ENOMEM; goto error; }