This is an automated email from the ASF dual-hosted git repository. cederom pushed a commit to branch releases/12.7 in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit e0989d950f675a714698473292a36f4abca98632 Author: dulibo1 <[email protected]> AuthorDate: Mon Mar 11 18:27:37 2024 +0800 pmconfig:fix coverity scan issue which is unsigned_compare Signed-off-by: dulibo1 <[email protected]> --- nshlib/nsh_syscmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c index 71f604bc4..dc31238ac 100644 --- a/nshlib/nsh_syscmds.c +++ b/nshlib/nsh_syscmds.c @@ -291,7 +291,7 @@ int cmd_pmconfig(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv) if (argc == 4) { ctrl.domain = atoi(argv[3]); - if (ctrl.domain < 0 || ctrl.domain >= CONFIG_PM_NDOMAINS) + if (ctrl.domain >= CONFIG_PM_NDOMAINS) { nsh_error(vtbl, g_fmtargrange, argv[3]); return ERROR;
