Skip to content

Commit b59f558

Browse files
IronShendavem330
authored andcommitted
net: hns3: Remove a useless member of struct hns3_stats
The member "stats_size" of struct hns3_stats is useless, remove it and fix the macro definition which has uses this struct. Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 57ffee7 commit b59f558

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@
1515

1616
struct hns3_stats {
1717
char stats_string[ETH_GSTRING_LEN];
18-
int stats_size;
1918
int stats_offset;
2019
};
2120

2221
/* tqp related stats */
2322
#define HNS3_TQP_STAT(_string, _member) { \
2423
.stats_string = _string, \
25-
.stats_size = FIELD_SIZEOF(struct ring_stats, _member), \
2624
.stats_offset = offsetof(struct hns3_enet_ring, stats) +\
2725
offsetof(struct ring_stats, _member), \
28-
} \
26+
}
2927

3028
static const struct hns3_stats hns3_txq_stats[] = {
3129
/* Tx per-queue statistics */

0 commit comments

Comments
 (0)