Skip to content

Commit

Permalink
ipack/devices/ipoctal: don't check if nb_bytes is < 0
Browse files Browse the repository at this point in the history
It is an unsigned int so that check is pointless.

Signed-off-by: Alberto Garcia <agarcia@igalia.com>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alberto Garcia authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent cc83f83 commit 69a6b9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ipack/devices/ipoctal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69a6b9b

Please sign in to comment.