[dpdk-test-report] |WARNING| pw44472 [01/37] net/sfc/base: fix PreFAST warnings because of unused return

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Sep 10 11:35:00 CEST 2018


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

_coding style issues_


CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'rc != 0'
#121: FILE: drivers/net/sfc/base/ef10_filter.c:1279:
+		if ((rc != 0) && (rollback == B_TRUE)) {

CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'rollback == B_TRUE'
#121: FILE: drivers/net/sfc/base/ef10_filter.c:1279:
+		if ((rc != 0) && (rollback == B_TRUE)) {

CHECK:SPACING: No space is necessary after a cast
#163: FILE: drivers/net/sfc/base/ef10_mac.c:415:
+	(void) efx_filter_reconfigure(enp, epp->ep_mac_addr,

CHECK:SPACING: No space is necessary after a cast
#176: FILE: drivers/net/sfc/base/ef10_nic.c:809:
+		(void) efx_mcdi_free_piobuf(enp, *handlep);

CHECK:SPACING: No space is necessary after a cast
#185: FILE: drivers/net/sfc/base/ef10_nic.c:826:
+		(void) efx_mcdi_free_piobuf(enp, *handlep);

CHECK:SPACING: No space is necessary after a cast
#198: FILE: drivers/net/sfc/base/ef10_nvram.c:1811:
+	(void) ef10_nvram_partn_unlock(enp, partn, NULL);

CHECK:SPACING: No space is necessary after a cast
#207: FILE: drivers/net/sfc/base/ef10_nvram.c:1826:
+	(void) ef10_nvram_partn_unlock(enp, partn, NULL);

CHECK:SPACING: No space is necessary after a cast
#220: FILE: drivers/net/sfc/base/ef10_tx.c:281:
+	(void) ef10_nic_pio_free(enp, etp->et_pio_bufnum, etp->et_pio_blknum);

CHECK:SPACING: No space is necessary after a cast
#234: FILE: drivers/net/sfc/base/ef10_tx.c:303:
+		(void) ef10_nic_pio_free(enp, etp->et_pio_bufnum,

CHECK:SPACING: No space is necessary after a cast
#248: FILE: drivers/net/sfc/base/efx_port.c:40:
+	(void) efx_port_poll(enp, NULL);

total: 0 errors, 0 warnings, 10 checks, 178 lines checked


More information about the test-report mailing list