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:
Peter Bigot 2019-10-02 19:26:14 -05:00 committed by Kumar Gala
commit ab91eef23b
48 changed files with 160 additions and 133 deletions

View file

@ -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,