diff options
author | Luo bin <luobin9@huawei.com> | 2020-08-09 11:53:49 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-11 10:33:14 -0700 |
commit | 1dab5877e8ebb7a00fbf0e7d797c869aa37830b9 (patch) | |
tree | 948124f26b949a83a13a94a2f1f2401b341fdaed /drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h | |
parent | drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check (diff) | |
download | linux-dev-1dab5877e8ebb7a00fbf0e7d797c869aa37830b9.tar.xz linux-dev-1dab5877e8ebb7a00fbf0e7d797c869aa37830b9.zip |
hinic: fix strncpy output truncated compile warnings
fix the compile warnings of 'strncpy' output truncated before
terminating nul copying N bytes from a string of the same length
Signed-off-by: Luo bin <luobin9@huawei.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h index dc6e645f2689..701eb81e09a7 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h +++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h @@ -504,8 +504,6 @@ enum hinic_fault_type { FAULT_TYPE_MAX, }; -#define FAULT_SHOW_STR_LEN 16 - enum hinic_fault_err_level { FAULT_LEVEL_FATAL, FAULT_LEVEL_SERIOUS_RESET, |