Commit 92c91294 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] Q40 keyboard warnings

Kill warnings in Q40 keyboard driver:
  - wrong return type
  - unused variable
parent 7d7488bf
...@@ -55,7 +55,6 @@ static int q40kbd_open(struct serio *port) ...@@ -55,7 +55,6 @@ static int q40kbd_open(struct serio *port)
} }
static void q40kbd_close(struct serio *port) static void q40kbd_close(struct serio *port)
{ {
return 0;
} }
static struct serio q40kbd_port = static struct serio q40kbd_port =
...@@ -70,8 +69,6 @@ static struct serio q40kbd_port = ...@@ -70,8 +69,6 @@ static struct serio q40kbd_port =
static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs) static void q40kbd_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{ {
unsigned long flags;
if (IRQ_KEYB_MASK & master_inb(INTERRUPT_REG)) if (IRQ_KEYB_MASK & master_inb(INTERRUPT_REG))
if (q40kbd_port.dev) if (q40kbd_port.dev)
q40kbd_port.dev->interrupt(&q40kbd_port, master_inb(KEYCODE_REG), 0); q40kbd_port.dev->interrupt(&q40kbd_port, master_inb(KEYCODE_REG), 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment