[dpdk-test-report] |WARNING| pw45180 [v2] kni: dynamically allocate memory for each KNI
checkpatch at dpdk.org
checkpatch at dpdk.org
Sun Sep 23 21:12:55 CEST 2018
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/45180
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#54: FILE: lib/librte_kni/rte_kni.c:36:
+#define KNI_MEM_CHECK(cond, fail) do { if (cond) goto fail; } while (0)
WARNING:BRACES: braces {} are not necessary for single statement blocks
#609: FILE: lib/librte_kni/rte_kni.c:383:
+ if (te == NULL) {
+ goto unlock;
+ }
WARNING:BRACES: braces {} are not necessary for single statement blocks
#689: FILE: lib/librte_kni/rte_kni.c:648:
+ if (te == NULL) {
+ return NULL;
+ }
total: 0 errors, 3 warnings, 674 lines checked
More information about the test-report
mailing list