Skip to content

Commit

Permalink
powerpc: Make open count variables signed in hvcs/hvsi/hvc_console
Browse files Browse the repository at this point in the history
Otherwise the tests for count < 0 will never be true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
roel kluin authored and Paul Mackerras committed Dec 3, 2008
1 parent dc42149 commit 3d26825
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/char/hvc_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct hvc_struct {
spinlock_t lock;
int index;
struct tty_struct *tty;
unsigned int count;
int count;
int do_wakeup;
char *outbuf;
int outbuf_size;
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/hvcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ struct hvcs_struct {
unsigned int index;

struct tty_struct *tty;
unsigned int open_count;
int open_count;

/*
* Used to tell the driver kernel_thread what operations need to take
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/hvsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct hvsi_struct {
spinlock_t lock;
int index;
struct tty_struct *tty;
unsigned int count;
int count;
uint8_t throttle_buf[128];
uint8_t outbuf[N_OUTBUF]; /* to implement write_room and chars_in_buffer */
/* inbuf is for packet reassembly. leave a little room for leftovers. */
Expand Down

0 comments on commit 3d26825

Please sign in to comment.