automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw153359 [PATCH v8 1/3] cmdline: use C standard library as number parser
       [not found] <7bebd92be36f945c175382bb1e0482e55844c1d2.1746710154.git.anatoly.burakov@intel.com>
@ 2025-05-08 13:17 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2025-05-08 13:17 UTC (permalink / raw)
  To: test-report; +Cc: Anatoly Burakov

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/153359

_coding style issues_


WARNING:BRACES: braces {} are not necessary for any arm of this statement
#346: FILE: lib/cmdline/cmdline_parse_num.c:174:
+			if (c == '0') {
[...]
-			else if (c >= '1' && c <= '9') {
[...]

ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#356: FILE: lib/cmdline/cmdline_parse_num.c:177:
 			}
+			else {

WARNING:BRACES: braces {} are not necessary for single statement blocks
#356: FILE: lib/cmdline/cmdline_parse_num.c:177:
+			else {
 				st = ERROR;
 			}

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#366: FILE: lib/cmdline/cmdline_parse_num.c:183:
+			if (c == 'b') {
[...]
-			else if (c >= '0' && c <= '7') {
[...]

WARNING:TYPO_SPELLING: 'ressize' may be misspelled - perhaps 'resize'?
#569: FILE: lib/cmdline/cmdline_parse_num.c:264:
+	unsigned ressize)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#569: FILE: lib/cmdline/cmdline_parse_num.c:264:
+	unsigned ressize)

WARNING:TYPO_SPELLING: 'ressize' may be misspelled - perhaps 'resize'?
#582: FILE: lib/cmdline/cmdline_parse_num.c:277:
+	if (res && check_res_size(&nd, ressize) < 0)

total: 1 errors, 6 warnings, 499 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-08 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <7bebd92be36f945c175382bb1e0482e55844c1d2.1746710154.git.anatoly.burakov@intel.com>
2025-05-08 13:17 ` |WARNING| pw153359 [PATCH v8 1/3] cmdline: use C standard library as number parser checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).