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>
此提交包含在:
Joe Perches
2013-10-23 12:14:52 -07:00
提交者 Matthew Garrett
父節點 a825bc87b2
當前提交 b222cca600
共有 8 個檔案被更改,包括 8 行新增23 行删除

查看文件

@@ -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;