]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
vme: fake: Delete an error message for a failed memory allocation in fake_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 25 Aug 2017 07:31:46 +0000 (09:31 +0200)
committerMartyn Welch <martyn.welch@collabora.co.uk>
Fri, 13 Oct 2017 20:32:01 +0000 (21:32 +0100)
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>
drivers/vme/bridges/vme_fake.c

index 30b3acc9383309509862e0d1b942c22bc82a5361..6ceea5e9fd8bc6b88618745a13a03d87e22658a0 100644 (file)
@@ -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;
        }