summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-05-17 18:12:16 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-05-24 16:46:51 +0300
commitc6c092dcb21e4def00f2b5e077d03434c38acfe4 (patch)
tree80f0da8b26774478bf72e6c63724129788656822 /drivers/ssb
parentb9b238726716bed2ba2f3c1cd755e2e5340dc6ef (diff)
downloadop-kernel-dev-c6c092dcb21e4def00f2b5e077d03434c38acfe4.zip
op-kernel-dev-c6c092dcb21e4def00f2b5e077d03434c38acfe4.tar.gz
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>
Diffstat (limited to 'drivers/ssb')
-rw-r--r--drivers/ssb/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index d1a7507..65420a9 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;
}
OpenPOWER on IntegriCloud