Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d765580
)
Remove unnecessary intermediate var
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 3 Jan 2019 16:53:15 +0000
(17:53 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000
(17:03 +0100)
drivers/serial.c
patch
|
blob
|
history
diff --git
a/drivers/serial.c
b/drivers/serial.c
index
c7ad543
..
e5ca24e
100644
(file)
--- a/
drivers/serial.c
+++ b/
drivers/serial.c
@@
-338,12
+338,9
@@
static uint32_t uart_setup(uint32_t uart_num)
*/
int uart_set_config(uint8_t uart_num, uint32_t config)
{
- struct uart_device* uart = NULL;
-
if (uart_num >= NUM_UARTS)
return -EINVAL;
- uart = &uarts[uart_num];
- uart->config = config;
+ uarts[uart_num].config = config;
return 0;
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !