summaryrefslogtreecommitdiffstats
path: root/drivers/vme
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-25 09:31:46 +0200
committerMartyn Welch <martyn.welch@collabora.co.uk>2017-10-13 21:32:01 +0100
commitef544fbc53badd3ae1c85980211bd39419c4082a (patch)
tree3c3a73b156717bdc10d9e2746d5283f1324e08e9 /drivers/vme
parent8af70cd9d6dec3fb968613a8d5318039ac5497b1 (diff)
downloadlinux-ef544fbc53badd3ae1c85980211bd39419c4082a.tar.bz2
vme: fake: Delete an error message for a failed memory allocation in fake_init()
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Martyn Welch <martyn@welchs.me.uk>
Diffstat (limited to 'drivers/vme')
-rw-r--r--drivers/vme/bridges/vme_fake.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vme/bridges/vme_fake.c b/drivers/vme/bridges/vme_fake.c
index 30b3acc93833..6ceea5e9fd8b 100644
--- a/drivers/vme/bridges/vme_fake.c
+++ b/drivers/vme/bridges/vme_fake.c
@@ -1156,7 +1156,6 @@ static int __init fake_init(void)
INIT_LIST_HEAD(&fake_bridge->lm_resources);
lm = kmalloc(sizeof(struct vme_lm_resource), GFP_KERNEL);
if (lm == NULL) {
- pr_err("Failed to allocate memory for location monitor resource structure\n");
retval = -ENOMEM;
goto err_lm;
}