asus-laptop: fix asus_input_init error path
authorAxel Lin <axel.lin@gmail.com>
Mon, 5 Jul 2010 07:29:00 +0000 (15:29 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:49:11 +0000 (09:49 -0400)
This patch includes below fixes:
1. return -ENOMEM instead of 0 if input_allocate_device fail.
2. fix wrong goto if sparse_keymap_setup fail.
3. fix wrong goto if input_register_device fail.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>

No differences found