Browse Source

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 <elfring@users.sourceforge.net>
Acked-by: Michael Büsch <m@bues.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Markus Elfring 8 years ago
parent
commit
c6c092dcb2
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/ssb/main.c

+ 0 - 1
drivers/ssb/main.c

@@ -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;
 		}
 		}