[dpdk-test-report] |WARNING| pw27908 [PATCH 7/8] net/bnxt: fix	HWRM_*() macros and locking
    checkpatch at dpdk.org 
    checkpatch at dpdk.org
       
    Fri Aug 25 12:30:20 CEST 2017
    
    
  
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/27908
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#88: FILE: drivers/net/bnxt/bnxt_hwrm.c:196:
+#define HWRM_CHECK_RESULT() \
+	do {\
 		if (rc) { \
 			RTE_LOG(ERR, PMD, "%s failed rc:%d
", \
 				__func__, rc); \
+			rte_spinlock_unlock(&bp->hwrm_lock); \
 			return rc; \
 		} \
 		if (resp->error_code) { \
total: 0 errors, 1 warnings, 0 checks, 1259 lines checked
    
    
More information about the test-report
mailing list