Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef544fbc authored by Markus Elfring's avatar Markus Elfring Committed by Martyn Welch
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMartyn Welch <martyn@welchs.me.uk>
parent 8af70cd9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}