Skip to content

Commit

Permalink
Atari keyboard: incorporate additional review comments
Browse files Browse the repository at this point in the history
Atari keyboard: incorporate additional review comments:
  o Kill reference to source file name
  o Return error value from input_register_device() instead of -ENOMEM

Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: Dmitry Torokhov <[email protected]>
Cc: Michael Schmitz <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
geertu authored and Linus Torvalds committed Oct 15, 2007
1 parent 355aaff commit 63bd8c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions arch/m68k/atari/atakeyb.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
* linux/arch/m68k/atari/atakeyb.c
*
* Atari Keyboard driver for 680x0 Linux
*
* This file is subject to the terms and conditions of the GNU General Public
Expand Down
7 changes: 4 additions & 3 deletions drivers/input/keyboard/atakbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static void atakbd_interrupt(unsigned char scancode, char down)

static int __init atakbd_init(void)
{
int i;
int i, error;

if (!MACH_IS_ATARI || !ATARIHW_PRESENT(ST_MFP))
return -EIO;
Expand Down Expand Up @@ -247,9 +247,10 @@ static int __init atakbd_init(void)
}

/* error check */
if (input_register_device(atakbd_dev)) {
error = input_register_device(atakbd_dev);
if (error) {
input_free_device(atakbd_dev);
return -ENOMEM;
return error;
}

atari_input_keyboard_interrupt_hook = atakbd_interrupt;
Expand Down

0 comments on commit 63bd8c4

Please sign in to comment.