Commit 2641dfd9 authored by Darren Jenkins's avatar Darren Jenkins Committed by Linus Torvalds

[PATCH] synclink_gt: make ->init_error signed

Examples of misuse are

3112 info->init_error = -1;

4440 if ((info->init_error = register_test(info)) < 0) {
Signed-off-by: default avatarDarren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarPaul Fulghum <paulkf@microgate.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d6713e04
...@@ -306,7 +306,7 @@ struct slgt_info { ...@@ -306,7 +306,7 @@ struct slgt_info {
int tx_active; int tx_active;
unsigned char signals; /* serial signal states */ unsigned char signals; /* serial signal states */
unsigned int init_error; /* initialization error */ int init_error; /* initialization error */
unsigned char *tx_buf; unsigned char *tx_buf;
int tx_count; int tx_count;
......
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