Commit d0e236d
committed
8250_ni16550: fix compiler warning about mixed declarations and code
During the build the following compiler warning is printed:
drivers/tty/serial/8250/8250_ni16550.c: In function ‘ni16550_config_prescaler’:
drivers/tty/serial/8250/8250_ni16550.c:181:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
181 | uint8_t efr_value;
Fix it by moving the declaration of 'efr_value' at the beginning of the
function.
Signed-off-by: Gratian Crisan <gratian.crisan@ni.com>1 parent 84c7e19 commit d0e236d
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | | - | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
0 commit comments