Skip to content

Commit

Permalink
Input: serio_raw - shut up errorneous warning
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Andrew Morton authored and Dmitry Torokhov committed Jul 10, 2007
1 parent 2f1d076 commit 4f179f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/serio_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *serio_raw = list->serio_raw;
char c;
char uninitialized_var(c);
ssize_t retval = 0;

if (!serio_raw->serio)
Expand Down

0 comments on commit 4f179f7

Please sign in to comment.