net/bnx2x: remove unnecessary void casts

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
This commit is contained in:
Stephen Hemminger 2017-08-23 08:44:41 -07:00 committed by Ferruh Yigit
parent c947ef897b
commit ea859a45b8
3 changed files with 6 additions and 6 deletions

View File

@ -6604,7 +6604,7 @@ bnx2x_config_rss_pf(struct bnx2x_softc *sc, struct ecore_rss_config_obj *rss_obj
/* Hash bits */ /* Hash bits */
params.rss_result_mask = MULTI_MASK; params.rss_result_mask = MULTI_MASK;
(void)rte_memcpy(params.ind_table, rss_obj->ind_table, rte_memcpy(params.ind_table, rss_obj->ind_table,
sizeof(params.ind_table)); sizeof(params.ind_table));
if (config_hash) { if (config_hash) {
@ -6671,7 +6671,7 @@ bnx2x_set_mac_one(struct bnx2x_softc *sc, uint8_t * mac,
/* fill a user request section if needed */ /* fill a user request section if needed */
if (!bnx2x_test_bit(RAMROD_CONT, ramrod_flags)) { if (!bnx2x_test_bit(RAMROD_CONT, ramrod_flags)) {
(void)rte_memcpy(ramrod_param.user_req.u.mac.mac, mac, rte_memcpy(ramrod_param.user_req.u.mac.mac, mac,
ETH_ALEN); ETH_ALEN);
bnx2x_set_bit(mac_type, &ramrod_param.user_req.vlan_mac_flags); bnx2x_set_bit(mac_type, &ramrod_param.user_req.vlan_mac_flags);
@ -6879,7 +6879,7 @@ static void bnx2x_link_report(struct bnx2x_softc *sc)
sc->link_cnt++; sc->link_cnt++;
/* report new link params and remember the state for the next time */ /* report new link params and remember the state for the next time */
(void)rte_memcpy(&sc->last_reported_link, &cur_data, sizeof(cur_data)); rte_memcpy(&sc->last_reported_link, &cur_data, sizeof(cur_data));
if (bnx2x_test_bit(BNX2X_LINK_REPORT_LINK_DOWN, if (bnx2x_test_bit(BNX2X_LINK_REPORT_LINK_DOWN,
&cur_data.link_report_flags)) { &cur_data.link_report_flags)) {

View File

@ -1525,12 +1525,12 @@ bnx2x_reg_read32(struct bnx2x_softc *sc, size_t offset)
#define REG_RD_DMAE(sc, offset, valp, len32) \ #define REG_RD_DMAE(sc, offset, valp, len32) \
do { \ do { \
(void)bnx2x_read_dmae(sc, offset, len32); \ (void)bnx2x_read_dmae(sc, offset, len32); \
(void)rte_memcpy(valp, BNX2X_SP(sc, wb_data[0]), (len32) * 4); \ rte_memcpy(valp, BNX2X_SP(sc, wb_data[0]), (len32) * 4); \
} while (0) } while (0)
#define REG_WR_DMAE(sc, offset, valp, len32) \ #define REG_WR_DMAE(sc, offset, valp, len32) \
do { \ do { \
(void)rte_memcpy(BNX2X_SP(sc, wb_data[0]), valp, (len32) * 4); \ rte_memcpy(BNX2X_SP(sc, wb_data[0]), valp, (len32) * 4); \
(void)bnx2x_write_dmae(sc, BNX2X_SP_MAPPING(sc, wb_data), offset, len32); \ (void)bnx2x_write_dmae(sc, BNX2X_SP_MAPPING(sc, wb_data), offset, len32); \
} while (0) } while (0)

View File

@ -113,7 +113,7 @@ typedef rte_spinlock_t ECORE_MUTEX_SPIN;
#define ECORE_FCOE_CID(sc) ((sc)->fp[FCOE_IDX(sc)].cl_id) #define ECORE_FCOE_CID(sc) ((sc)->fp[FCOE_IDX(sc)].cl_id)
#define ECORE_MEMCMP(_a, _b, _s) memcmp(_a, _b, _s) #define ECORE_MEMCMP(_a, _b, _s) memcmp(_a, _b, _s)
#define ECORE_MEMCPY(_a, _b, _s) (void)rte_memcpy(_a, _b, _s) #define ECORE_MEMCPY(_a, _b, _s) rte_memcpy(_a, _b, _s)
#define ECORE_MEMSET(_a, _c, _s) memset(_a, _c, _s) #define ECORE_MEMSET(_a, _c, _s) memset(_a, _c, _s)
#define ECORE_CPU_TO_LE16(x) htole16(x) #define ECORE_CPU_TO_LE16(x) htole16(x)