diff options
| author | Guojia Liao <liaoguojia@huawei.com> | 2019-10-31 14:23:20 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-10-31 22:03:23 +0300 |
| commit | e4b806edfabd43853d365a9fcaf238cf10c3c4ab (patch) | |
| tree | bd07def9419200d7cd63f2fb1351644825798c53 /tools/perf/scripts/python | |
| parent | db4d3d554eb53cacb3ce4defe294f19a548a1034 (diff) | |
| download | linux-e4b806edfabd43853d365a9fcaf238cf10c3c4ab.tar.xz | |
net: hns3: cleanup a format-truncation warning
In hns3_nic_init_irq(), when '*_int_idx' has more than 9 digits
and the length of netdev's name is IFNAMSIZ, the total length
of final name will be bigger the HNAE3_INT_NAME_LEN - 1, even
though '*_int_idx' will never have such large value, but the
compiler gives a format-truncation warning for this case.
So this patch just enlarges the length to avoid this warning.
Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
