Author: pfg Date: Thu Mar 9 02:59:02 2017 New Revision: 314939 URL: https://svnweb.freebsd.org/changeset/base/314939
Log: MFC r314145, r314158 vxge(4): double assignments. Fix some suspicious code, likely caused by excessive copy-pasting. Found with: coccinelle (da.cocci) Modified: stable/10/sys/dev/vxge/vxge.c stable/10/sys/dev/vxge/vxgehal/vxgehal-config.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/vxge/vxge.c ============================================================================== --- stable/10/sys/dev/vxge/vxge.c Thu Mar 9 02:58:02 2017 (r314938) +++ stable/10/sys/dev/vxge/vxge.c Thu Mar 9 02:59:02 2017 (r314939) @@ -2317,7 +2317,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_RTI_RTIMER_VAL; vpath->tx_intr_coalesce = vdev->config.intr_coalesce; vpath->rx_intr_coalesce = vdev->config.intr_coalesce; Modified: stable/10/sys/dev/vxge/vxgehal/vxgehal-config.c ============================================================================== --- stable/10/sys/dev/vxge/vxgehal/vxgehal-config.c Thu Mar 9 02:58:02 2017 (r314938) +++ stable/10/sys/dev/vxge/vxgehal/vxgehal-config.c Thu Mar 9 02:59:02 2017 (r314939) @@ -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; _______________________________________________ svn-src-stable-10@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10 To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"