mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
kernel/module: Delete an error message for a failed memory allocation in add_module_usage()
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: Jessica Yu <jeyu@kernel.org>
This commit is contained in:
parent
33d930e59a
commit
9ad0457423
@ -837,10 +837,8 @@ static int add_module_usage(struct module *a, struct module *b)
|
|||||||
|
|
||||||
pr_debug("Allocating new usage for %s.\n", a->name);
|
pr_debug("Allocating new usage for %s.\n", a->name);
|
||||||
use = kmalloc(sizeof(*use), GFP_ATOMIC);
|
use = kmalloc(sizeof(*use), GFP_ATOMIC);
|
||||||
if (!use) {
|
if (!use)
|
||||||
pr_warn("%s: out of memory loading\n", a->name);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
use->source = a;
|
use->source = a;
|
||||||
use->target = b;
|
use->target = b;
|
||||||
|
Loading…
Reference in New Issue
Block a user