aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ipack/devices/ipoctal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ipack/devices/ipoctal.c')
-rw-r--r--drivers/ipack/devices/ipoctal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c
index e66135da63ce..a33a849765c6 100644
--- a/drivers/ipack/devices/ipoctal.c
+++ b/drivers/ipack/devices/ipoctal.c
@@ -183,10 +183,8 @@ static void ipoctal_irq_tx(struct ipoctal_channel *channel)
183 unsigned char value; 183 unsigned char value;
184 unsigned int *pointer_write = &channel->pointer_write; 184 unsigned int *pointer_write = &channel->pointer_write;
185 185
186 if (channel->nb_bytes <= 0) { 186 if (channel->nb_bytes == 0)
187 channel->nb_bytes = 0;
188 return; 187 return;
189 }
190 188
191 value = channel->tty_port.xmit_buf[*pointer_write]; 189 value = channel->tty_port.xmit_buf[*pointer_write];
192 iowrite8(value, &channel->regs->w.thr); 190 iowrite8(value, &channel->regs->w.thr);