Skip to content

Commit

Permalink
[PATCH] synclink_gt: make ->init_error signed
Browse files Browse the repository at this point in the history
Examples of misuse are

3112 info->init_error = -1;

4440 if ((info->init_error = register_test(info)) < 0) {

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Darren Jenkins authored and Linus Torvalds committed Mar 1, 2006
1 parent d6713e0 commit 2641dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/synclink_gt.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ struct slgt_info {
int tx_active;

unsigned char signals; /* serial signal states */
unsigned int init_error; /* initialization error */
int init_error; /* initialization error */

unsigned char *tx_buf;
int tx_count;
Expand Down

0 comments on commit 2641dfd

Please sign in to comment.