Title: [7146] branches/2009R1/drivers/serial/bfin_5xx.c: Correct the negation logic as Mike pointed out
- Revision
- 7146
- Author
- gyang
- Date
- 2009-08-11 00:19:17 -0400 (Tue, 11 Aug 2009)
Log Message
Correct the negation logic as Mike pointed out
Modified Paths
Diff
Modified: branches/2009R1/drivers/serial/bfin_5xx.c (7145 => 7146)
--- branches/2009R1/drivers/serial/bfin_5xx.c 2009-08-11 03:02:18 UTC (rev 7145)
+++ branches/2009R1/drivers/serial/bfin_5xx.c 2009-08-11 04:19:17 UTC (rev 7146)
@@ -864,7 +864,7 @@
quot = uart_get_divisor(port, baud);
/* If discipline is not IRDA, apply ANOMALY_05000230 */
- if (port->info && (port->info->port.tty->termios->c_line != N_IRDA))
+ if (!port->info || (port->info->port.tty->termios->c_line != N_IRDA))
quot -= ANOMALY_05000230;
spin_lock_irqsave(&uart->port.lock, flags);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits