diff options
| -rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index f7ed122f4071..d5648fc666bd 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
| @@ -3052,9 +3052,8 @@ static void bnx2x_drv_info_ether_stat(struct bnx2x *bp) | |||
| 3052 | struct eth_stats_info *ether_stat = | 3052 | struct eth_stats_info *ether_stat = |
| 3053 | &bp->slowpath->drv_info_to_mcp.ether_stat; | 3053 | &bp->slowpath->drv_info_to_mcp.ether_stat; |
| 3054 | 3054 | ||
| 3055 | /* leave last char as NULL */ | 3055 | strlcpy(ether_stat->version, DRV_MODULE_VERSION, |
| 3056 | memcpy(ether_stat->version, DRV_MODULE_VERSION, | 3056 | ETH_STAT_INFO_VERSION_LEN); |
| 3057 | ETH_STAT_INFO_VERSION_LEN - 1); | ||
| 3058 | 3057 | ||
| 3059 | bp->sp_objs[0].mac_obj.get_n_elements(bp, &bp->sp_objs[0].mac_obj, | 3058 | bp->sp_objs[0].mac_obj.get_n_elements(bp, &bp->sp_objs[0].mac_obj, |
| 3060 | DRV_INFO_ETH_STAT_NUM_MACS_REQUIRED, | 3059 | DRV_INFO_ETH_STAT_NUM_MACS_REQUIRED, |
