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

Commit 69a6b9b1 authored by Alberto Garcia's avatar Alberto Garcia Committed by Greg Kroah-Hartman
Browse files

ipack/devices/ipoctal: don't check if nb_bytes is < 0



It is an unsigned int so that check is pointless.

Signed-off-by: default avatarAlberto Garcia <agarcia@igalia.com>
Signed-off-by: default avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cc83f833
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -183,10 +183,8 @@ static void ipoctal_irq_tx(struct ipoctal_channel *channel)
	unsigned char value;
	unsigned int *pointer_write = &channel->pointer_write;

	if (channel->nb_bytes <= 0) {
		channel->nb_bytes = 0;
	if (channel->nb_bytes == 0)
		return;
	}

	value = channel->tty_port.xmit_buf[*pointer_write];
	iowrite8(value, &channel->regs->w.thr);