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>
此提交包含在:
@@ -1494,10 +1494,9 @@ static int asus_input_init(struct asus_laptop *asus)
|
||||
int error;
|
||||
|
||||
input = input_allocate_device();
|
||||
if (!input) {
|
||||
pr_warn("Unable to allocate input device\n");
|
||||
if (!input)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
input->name = "Asus Laptop extra buttons";
|
||||
input->phys = ASUS_LAPTOP_FILE "/input0";
|
||||
input->id.bustype = BUS_HOST;
|
||||
|
新增問題並參考
封鎖使用者