coccinelle: standardize kernel API timeout arguments
Use the int_literal_to_timeout Coccinelle script to convert literal integer arguments for kernel API timeout parameters to the standard timeout value representations. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
0e5329331b
commit
ab91eef23b
48 changed files with 160 additions and 133 deletions
|
@ -420,7 +420,7 @@ static int write(const struct shell_transport *transport,
|
|||
*/
|
||||
timeout = (timeout == 0) ? TELNET_TIMEOUT : timeout;
|
||||
|
||||
k_timer_start(&sh_telnet->send_timer, timeout, 0);
|
||||
k_timer_start(&sh_telnet->send_timer, timeout, K_NO_WAIT);
|
||||
}
|
||||
|
||||
sh_telnet->shell_handler(SHELL_TRANSPORT_EVT_TX_RDY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue