dev/vxe: double assignments.
Fix some suspicious code, likely caused by excessive copy-pasting. Found with: coccinelle (da.cocci) MFC after: 2 weeks
This commit is contained in:
parent
e54226a396
commit
0778102b03
@ -2312,7 +2312,7 @@ vxge_vpath_open(vxge_dev_t *vdev)
|
||||
vpath->rx_ticks = ticks;
|
||||
|
||||
vpath->tti_rtimer_val = VXGE_DEFAULT_TTI_RTIMER_VAL;
|
||||
vpath->tti_rtimer_val = VXGE_DEFAULT_TTI_RTIMER_VAL;
|
||||
vpath->rti_rtimer_val = VXGE_DEFAULT_TTI_RTIMER_VAL;
|
||||
|
||||
vpath->tx_intr_coalesce = vdev->config.intr_coalesce;
|
||||
vpath->rx_intr_coalesce = vdev->config.intr_coalesce;
|
||||
|
@ -2312,9 +2312,6 @@ vxge_hal_device_config_default_get(
|
||||
port_config->host_chosen_aggr =
|
||||
VXGE_HAL_LAG_PORT_HOST_CHOSEN_AGGR_DEFAULT;
|
||||
|
||||
port_config->host_chosen_aggr =
|
||||
VXGE_HAL_LAG_PORT_HOST_CHOSEN_AGGR_DEFAULT;
|
||||
|
||||
port_config->discard_unknown_slow_proto =
|
||||
VXGE_HAL_LAG_PORT_DISCARD_UNKNOWN_SLOW_PROTO_DEFAULT;
|
||||
|
||||
@ -2348,9 +2345,6 @@ vxge_hal_device_config_default_get(
|
||||
port_config->actor_distributing =
|
||||
VXGE_HAL_LAG_PORT_ACTOR_DISTRIBUTING_DEFAULT;
|
||||
|
||||
port_config->actor_distributing =
|
||||
VXGE_HAL_LAG_PORT_ACTOR_DISTRIBUTING_DEFAULT;
|
||||
|
||||
port_config->actor_defaulted =
|
||||
VXGE_HAL_LAG_PORT_ACTOR_DEFAULTED_DEFAULT;
|
||||
|
||||
@ -2387,9 +2381,6 @@ vxge_hal_device_config_default_get(
|
||||
port_config->partner_distributing =
|
||||
VXGE_HAL_LAG_PORT_PARTNER_DISTRIBUTING_DEFAULT;
|
||||
|
||||
port_config->partner_distributing =
|
||||
VXGE_HAL_LAG_PORT_PARTNER_DISTRIBUTING_DEFAULT;
|
||||
|
||||
port_config->partner_defaulted =
|
||||
VXGE_HAL_LAG_PORT_PARTNER_DEFAULTED_DEFAULT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user