summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/eeepc-laptop.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-10-23 23:14:52 +0400
committerMatthew Garrett <matthew.garrett@nebula.com>2013-11-21 03:51:03 +0400
commitb222cca6002c9396c0ac03b68756f8c565d73561 (patch)
tree9606fde2e51be15aff436c6fae5ac36e3b615b23 /drivers/platform/x86/eeepc-laptop.c
parenta825bc87b2694dbefe39590a3efe29c5da4d3dd3 (diff)
downloadlinux-b222cca6002c9396c0ac03b68756f8c565d73561.tar.xz
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>
Diffstat (limited to 'drivers/platform/x86/eeepc-laptop.c')
-rw-r--r--drivers/platform/x86/eeepc-laptop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index aefcc32e5634..dec68e7a99c7 100644
--- a/drivers/platform/x86/eeepc-laptop.c
+++ b/drivers/platform/x86/eeepc-laptop.c
@@ -1203,10 +1203,8 @@ static int eeepc_input_init(struct eeepc_laptop *eeepc)
int error;
input = input_allocate_device();
- if (!input) {
- pr_info("Unable to allocate input device\n");
+ if (!input)
return -ENOMEM;
- }
input->name = "Asus EeePC extra buttons";
input->phys = EEEPC_LAPTOP_FILE "/input0";