From: Markus Elfring Date: Fri, 25 Aug 2017 07:31:46 +0000 (+0200) Subject: vme: fake: Delete an error message for a failed memory allocation in fake_init() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ef544fbc53badd3ae1c85980211bd39419c4082a;p=linux.git 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 Signed-off-by: Martyn Welch --- diff --git a/drivers/vme/bridges/vme_fake.c b/drivers/vme/bridges/vme_fake.c index 30b3acc938330..6ceea5e9fd8bc 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; }