mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 16:57:58 +07:00
IB/nes: Remove set-but-not-used variables
This patch does not change any functionality. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Faisal Latif <faisal.latif@intel.com> Acked-by: Faisal Latif <fasial.latif@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
ea45c45be0
commit
fd9e04d6d2
@ -1389,7 +1389,6 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
|
|||||||
struct rtable *rt;
|
struct rtable *rt;
|
||||||
struct neighbour *neigh;
|
struct neighbour *neigh;
|
||||||
int rc = arpindex;
|
int rc = arpindex;
|
||||||
struct net_device *netdev;
|
|
||||||
struct nes_adapter *nesadapter = nesvnic->nesdev->nesadapter;
|
struct nes_adapter *nesadapter = nesvnic->nesdev->nesadapter;
|
||||||
__be32 dst_ipaddr = htonl(dst_ip);
|
__be32 dst_ipaddr = htonl(dst_ip);
|
||||||
|
|
||||||
@ -1400,11 +1399,6 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpi
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netif_is_bond_slave(nesvnic->netdev))
|
|
||||||
netdev = netdev_master_upper_dev_get(nesvnic->netdev);
|
|
||||||
else
|
|
||||||
netdev = nesvnic->netdev;
|
|
||||||
|
|
||||||
neigh = dst_neigh_lookup(&rt->dst, &dst_ipaddr);
|
neigh = dst_neigh_lookup(&rt->dst, &dst_ipaddr);
|
||||||
|
|
||||||
rcu_read_lock();
|
rcu_read_lock();
|
||||||
@ -3075,7 +3069,6 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|||||||
u32 crc_value;
|
u32 crc_value;
|
||||||
int ret;
|
int ret;
|
||||||
int passive_state;
|
int passive_state;
|
||||||
struct nes_ib_device *nesibdev;
|
|
||||||
struct ib_mr *ibmr = NULL;
|
struct ib_mr *ibmr = NULL;
|
||||||
struct nes_pd *nespd;
|
struct nes_pd *nespd;
|
||||||
u64 tagged_offset;
|
u64 tagged_offset;
|
||||||
@ -3158,7 +3151,6 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
|
|||||||
|
|
||||||
if (raddr->sin_addr.s_addr != laddr->sin_addr.s_addr) {
|
if (raddr->sin_addr.s_addr != laddr->sin_addr.s_addr) {
|
||||||
u64temp = (unsigned long)nesqp;
|
u64temp = (unsigned long)nesqp;
|
||||||
nesibdev = nesvnic->nesibdev;
|
|
||||||
nespd = nesqp->nespd;
|
nespd = nesqp->nespd;
|
||||||
tagged_offset = (u64)(unsigned long)*start_buff;
|
tagged_offset = (u64)(unsigned long)*start_buff;
|
||||||
ibmr = nes_reg_phys_mr(&nespd->ibpd,
|
ibmr = nes_reg_phys_mr(&nespd->ibpd,
|
||||||
|
@ -753,7 +753,6 @@ void nes_mh_fix(unsigned long parm)
|
|||||||
u32 mac_tx_frames_low;
|
u32 mac_tx_frames_low;
|
||||||
u32 mac_tx_frames_high;
|
u32 mac_tx_frames_high;
|
||||||
u32 mac_tx_pauses;
|
u32 mac_tx_pauses;
|
||||||
u32 serdes_status;
|
|
||||||
u32 reset_value;
|
u32 reset_value;
|
||||||
u32 tx_control;
|
u32 tx_control;
|
||||||
u32 tx_config;
|
u32 tx_config;
|
||||||
@ -846,7 +845,7 @@ void nes_mh_fix(unsigned long parm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0, 0x00000008);
|
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_CONTROL0, 0x00000008);
|
||||||
serdes_status = nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_STATUS0);
|
nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_COMMON_STATUS0);
|
||||||
|
|
||||||
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_TX_EMP0, 0x000bdef7);
|
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_TX_EMP0, 0x000bdef7);
|
||||||
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_TX_DRIVE0, 0x9ce73000);
|
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_TX_DRIVE0, 0x9ce73000);
|
||||||
@ -859,7 +858,7 @@ void nes_mh_fix(unsigned long parm)
|
|||||||
} else {
|
} else {
|
||||||
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_RX_EQ_CONTROL0, 0xf0042222);
|
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_RX_EQ_CONTROL0, 0xf0042222);
|
||||||
}
|
}
|
||||||
serdes_status = nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_RX_EQ_STATUS0);
|
nes_read_indexed(nesdev, NES_IDX_ETH_SERDES_RX_EQ_STATUS0);
|
||||||
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_CDR_CONTROL0, 0x000000ff);
|
nes_write_indexed(nesdev, NES_IDX_ETH_SERDES_CDR_CONTROL0, 0x000000ff);
|
||||||
|
|
||||||
nes_write_indexed(nesdev, NES_IDX_MAC_TX_CONTROL, tx_control);
|
nes_write_indexed(nesdev, NES_IDX_MAC_TX_CONTROL, tx_control);
|
||||||
|
Loading…
Reference in New Issue
Block a user