diff options
Diffstat (limited to 'src/console/uart8250_console.c')
-rw-r--r-- | src/console/uart8250_console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c index 37364e710d..78921c3059 100644 --- a/src/console/uart8250_console.c +++ b/src/console/uart8250_console.c @@ -29,10 +29,10 @@ static void ttyS0_init(void) { static const unsigned char div[8]={1,2,3,6,12,24,48,96}; - int b_index=0; + unsigned int b_index=0; unsigned int divisor=TTYS0_DIV; - if(get_option(&b_index,"baud_rate")==0) { + if(!get_option("baud_rate", &b_index)) { divisor=div[b_index]; } uart8250_init(TTYS0_BASE, divisor, TTYS0_LCS); |