Commit be60c1f9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix compile warning in drivers/serial/core.c

drivers/serial/core.c:390: warning: `quot' might be used uninitialized in this function

It's a compiler bug.  This change makes it go away.
parent abc26b0a
...@@ -396,7 +396,7 @@ uart_get_divisor(struct uart_port *port, struct termios *termios, ...@@ -396,7 +396,7 @@ uart_get_divisor(struct uart_port *port, struct termios *termios,
baud = uart_get_baud_rate(port, termios); baud = uart_get_baud_rate(port, termios);
quot = uart_calculate_quot(port, baud); quot = uart_calculate_quot(port, baud);
if (quot) if (quot)
break; return quot;
/* /*
* Oops, the quotient was zero. Try again with * Oops, the quotient was zero. Try again with
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment