Title: [7147] trunk/drivers/serial/bfin_5xx.c: Correct the negation logic as Mike pointed out
- Revision
- 7147
- Author
- gyang
- Date
- 2009-08-11 00:19:22 -0400 (Tue, 11 Aug 2009)
Log Message
Correct the negation logic as Mike pointed out
Modified Paths
Diff
Modified: trunk/drivers/serial/bfin_5xx.c (7146 => 7147)
--- trunk/drivers/serial/bfin_5xx.c 2009-08-11 04:19:17 UTC (rev 7146)
+++ trunk/drivers/serial/bfin_5xx.c 2009-08-11 04:19:22 UTC (rev 7147)
@@ -863,7 +863,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