platform:x86: Remove OOM message after input_allocate_device
Emitting an OOM message isn't necessary after input_allocate_device as there's a generic OOM and a dump_stack already done. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:

committed by
Matthew Garrett

parent
a825bc87b2
commit
b222cca600
@@ -570,10 +570,8 @@ static int ideapad_input_init(struct ideapad_private *priv)
|
||||
int error;
|
||||
|
||||
inputdev = input_allocate_device();
|
||||
if (!inputdev) {
|
||||
pr_info("Unable to allocate input device\n");
|
||||
if (!inputdev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
inputdev->name = "Ideapad extra buttons";
|
||||
inputdev->phys = "ideapad/input0";
|
||||
|
Reference in New Issue
Block a user