[dpdk-test-report] |WARNING| pw71405 [PATCH 13/50] net/bnxt: update multi device design support

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jun 12 15:41:09 CEST 2020


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#494: FILE: drivers/net/bnxt/tf_core/tf_common.h:55:
+#define TF_CHECK_PARMS1(parms) do {					\
+		if ((parms) == NULL) {					\
+			TFP_DRV_LOG(ERR, "Invalid Argument(s)
");	\
+			return -EINVAL;					\
+		}							\
+	} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#501: FILE: drivers/net/bnxt/tf_core/tf_common.h:62:
+#define TF_CHECK_PARMS2(parms1, parms2) do {				\
+		if ((parms1) == NULL || (parms2) == NULL) {		\
+			TFP_DRV_LOG(ERR, "Invalid Argument(s)
");	\
+			return -EINVAL;					\
+		}							\
+	} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#508: FILE: drivers/net/bnxt/tf_core/tf_common.h:69:
+#define TF_CHECK_PARMS3(parms1, parms2, parms3) do {			\
+		if ((parms1) == NULL ||					\
+		    (parms2) == NULL ||					\
+		    (parms3) == NULL) {					\
+			TFP_DRV_LOG(ERR, "Invalid Argument(s)
");	\
+			return -EINVAL;					\
+		}							\
+	} while (0)

WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#2983: FILE: drivers/net/bnxt/tf_core/tf_session.c:132:
+#if 0

total: 0 errors, 4 warnings, 0 checks, 3433 lines checked


More information about the test-report mailing list