diff options
author | Sukumar Swaminathan <Sukumar.Swaminathan@Sun.COM> | 2009-11-09 20:49:09 -0800 |
---|---|---|
committer | Sukumar Swaminathan <Sukumar.Swaminathan@Sun.COM> | 2009-11-09 20:49:09 -0800 |
commit | 4aa4baabcbf85382c40c826cabf97d046ba28c89 (patch) | |
tree | 23fd36f1ef1ec7ddca42c6c2e7932ac0550e6863 | |
parent | 92241e0b80813d0b83c08e730a29b9d1831794fc (diff) | |
download | illumos-gate-4aa4baabcbf85382c40c826cabf97d046ba28c89.tar.gz |
6871527 FCoE, qlge driver - Add NIC side of support for new Qlogic FCoE adapter, Europa (fix lint)
4 files changed, 13 insertions, 12 deletions
diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c index f203e2ae21..b0d701c3bd 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_dbg.c @@ -1502,7 +1502,7 @@ qlge_set_loop_mode(qlge_t *qlge, uint32_t mode) */ qlge->loop_back_mode = mode; mutex_enter(&qlge->mbx_mutex); - ql_set_port_cfg(qlge); + (void) ql_set_port_cfg(qlge); mutex_exit(&qlge->mbx_mutex); return (IOC_REPLY); } diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c index fe39fbea15..352fc21b31 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_flash.c @@ -1183,7 +1183,7 @@ ql_write_flash(qlge_t *qlge, uint32_t addr, uint32_t data) uint8_t flash_status; ql_write_reg(qlge, REG_FLASH_DATA, data); - ql_read_reg(qlge, REG_FLASH_DATA); + (void) ql_read_reg(qlge, REG_FLASH_DATA); ql_write_reg(qlge, REG_FLASH_ADDRESS, addr); if ((rval = ql_wait_flash_reg_ready(qlge, FLASH_RDY_FLAG)) @@ -1364,7 +1364,8 @@ ql_write_flash_test2(qlge_t *qlge, uint32_t test_addr) data = 0x12345678; QL_PRINT(DBG_FLASH, ("write new test value %x\n", data)); - qlge_load_flash(qlge, (uint8_t *)&data, sizeof (data), test_addr); + (void) qlge_load_flash(qlge, (uint8_t *)&data, sizeof (data), + test_addr); (void) qlge_dump_fcode(qlge, (uint8_t *)&data, sizeof (data), test_addr); if (data != 0x12345678) { @@ -1373,7 +1374,7 @@ ql_write_flash_test2(qlge_t *qlge, uint32_t test_addr) data); } /* write old value to it and read back to restore */ - qlge_load_flash(qlge, (uint8_t *)&old_data, sizeof (old_data), + (void) qlge_load_flash(qlge, (uint8_t *)&old_data, sizeof (old_data), test_addr); (void) qlge_dump_fcode(qlge, (uint8_t *)&data, sizeof (data), test_addr); diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c index 891bc5e3f6..6ad591435c 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c @@ -107,7 +107,7 @@ ql_m_start(void *arg) mutex_exit(&qlge->gen_mutex); mutex_enter(&qlge->mbx_mutex); - ql_get_firmware_version(qlge, NULL); + (void) ql_get_firmware_version(qlge, NULL); mutex_exit(&qlge->mbx_mutex); return (0); @@ -342,7 +342,7 @@ ql_m_getstat(void *arg, uint_t stat, uint64_t *valp) DDI_SUCCESS) { break; } - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_JABBER_PKTS, + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_JABBER_PKTS, &val32); val = val32; ql_sem_unlock(qlge, qlge->xgmac_sem_mask); @@ -363,18 +363,18 @@ ql_m_getstat(void *arg, uint_t stat, uint64_t *valp) DDI_SUCCESS) { break; } - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_ALIGN_ERR, + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_ALIGN_ERR, &val32); val += val32; - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_FCS_ERR, &val32); + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_FCS_ERR, &val32); val += val32; - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_JABBER_PKTS, + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_JABBER_PKTS, &val32); val += val32; - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_SYM_ERR, + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_SYM_ERR, &val32); val += val32; - ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_INT_ERR, + (void) ql_read_xgmac_reg(qlge, REG_XGMAC_MAC_RX_INT_ERR, &val32); val += val32; ql_sem_unlock(qlge, qlge->xgmac_sem_mask); diff --git a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c index a767754359..a5cccd891a 100644 --- a/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c +++ b/usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_mpi.c @@ -1141,7 +1141,7 @@ ql_reset_mpi_risc(qlge_t *qlge) ql_write_reg(qlge, REG_HOST_CMD_STATUS, HOST_CMD_SET_RISC_RESET); if (ql_wait_reg_bit(qlge, REG_HOST_CMD_STATUS, RISC_RESET, BIT_SET, 0) != DDI_SUCCESS) { - ql_read_reg(qlge, REG_HOST_CMD_STATUS); + (void) ql_read_reg(qlge, REG_HOST_CMD_STATUS); goto out; } ql_write_reg(qlge, REG_HOST_CMD_STATUS, HOST_CMD_CLEAR_RISC_RESET); |