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>
This commit is contained in:
Родитель
8af70cd9d6
Коммит
ef544fbc53
|
@ -1156,7 +1156,6 @@ static int __init fake_init(void)
|
||||||
INIT_LIST_HEAD(&fake_bridge->lm_resources);
|
INIT_LIST_HEAD(&fake_bridge->lm_resources);
|
||||||
lm = kmalloc(sizeof(struct vme_lm_resource), GFP_KERNEL);
|
lm = kmalloc(sizeof(struct vme_lm_resource), GFP_KERNEL);
|
||||||
if (lm == NULL) {
|
if (lm == NULL) {
|
||||||
pr_err("Failed to allocate memory for location monitor resource structure\n");
|
|
||||||
retval = -ENOMEM;
|
retval = -ENOMEM;
|
||||||
goto err_lm;
|
goto err_lm;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче