Commit 3d26825ec03f623f20ba860e6e6113ab2d0bb0f1

Authored by roel kluin
Committed by Paul Mackerras
1 parent dc42149fcc

powerpc: Make open count variables signed in hvcs/hvsi/hvc_console

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>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

drivers/char/hvc_console.h
... ... @@ -48,7 +48,7 @@
48 48 spinlock_t lock;
49 49 int index;
50 50 struct tty_struct *tty;
51   - unsigned int count;
  51 + int count;
52 52 int do_wakeup;
53 53 char *outbuf;
54 54 int outbuf_size;
... ... @@ -269,7 +269,7 @@
269 269 unsigned int index;
270 270  
271 271 struct tty_struct *tty;
272   - unsigned int open_count;
  272 + int open_count;
273 273  
274 274 /*
275 275 * Used to tell the driver kernel_thread what operations need to take
... ... @@ -75,7 +75,7 @@
75 75 spinlock_t lock;
76 76 int index;
77 77 struct tty_struct *tty;
78   - unsigned int count;
  78 + int count;
79 79 uint8_t throttle_buf[128];
80 80 uint8_t outbuf[N_OUTBUF]; /* to implement write_room and chars_in_buffer */
81 81 /* inbuf is for packet reassembly. leave a little room for leftovers. */