coccinelle: run ms_timeout conversion semantic patch
Substitute integral constants where call sites passed named constants that have timeout values as arguments to parameters that expect millisecond durations. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
1f228da658
commit
52885d0576
5 changed files with 9 additions and 8 deletions
|
@ -297,7 +297,7 @@ static int cmd_send(const struct shell *shell, size_t argc, char **argv)
|
|||
ext ? frame.ext_id : frame.std_id,
|
||||
ext ? "extended" : "standard", frame.dlc);
|
||||
|
||||
ret = can_send(can_dev, &frame, K_FOREVER, NULL, NULL);
|
||||
ret = can_send(can_dev, &frame, SYS_FOREVER_MS, NULL, NULL);
|
||||
if (ret) {
|
||||
shell_error(shell, "Failed to send frame [%d]", ret);
|
||||
return -EIO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue