aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ipack
diff options
context:
space:
mode:
authorAlberto Garcia <agarcia@igalia.com>2012-12-10 05:49:58 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-15 21:24:37 -0500
commit69a6b9b1b6aec645d2efa23db2c15ed287e672dd (patch)
tree180e2afbbb21b2d98c1c9dc640bedd84bbe6737a /drivers/ipack
parentcc83f833c77c1d233e3843af18c1abf8d561d1fa (diff)
ipack/devices/ipoctal: don't check if nb_bytes is < 0
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>
Diffstat (limited to 'drivers/ipack')
-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);