Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d26825e authored by roel kluin's avatar roel kluin Committed by Paul Mackerras
Browse files

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



Otherwise the tests for count < 0 will never be true.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent dc42149f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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. */