Commit 4f179f71 authored by Andrew Morton's avatar Andrew Morton Committed by Dmitry Torokhov

Input: serio_raw - shut up errorneous warning

drivers/input/serio/serio_raw.c: In function 'serio_raw_read':
drivers/input/serio/serio_raw.c:163: warning: 'c' may be used uninitialized in this function
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 2f1d076a
...@@ -160,7 +160,7 @@ static ssize_t serio_raw_read(struct file *file, char __user *buffer, size_t cou ...@@ -160,7 +160,7 @@ static ssize_t serio_raw_read(struct file *file, char __user *buffer, size_t cou
{ {
struct serio_raw_list *list = file->private_data; struct serio_raw_list *list = file->private_data;
struct serio_raw *serio_raw = list->serio_raw; struct serio_raw *serio_raw = list->serio_raw;
char c; char uninitialized_var(c);
ssize_t retval = 0; ssize_t retval = 0;
if (!serio_raw->serio) if (!serio_raw->serio)
......
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