OSDN Git Service

hinic: fix strncpy output truncated compile warnings
authorLuo bin <luobin9@huawei.com>
Sun, 9 Aug 2020 03:53:49 +0000 (11:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2020 17:33:14 +0000 (10:33 -0700)
commit1dab5877e8ebb7a00fbf0e7d797c869aa37830b9
tree948124f26b949a83a13a94a2f1f2401b341fdaed
parentc79f428d6f14e754503fa7a3145d62039ccd05c9
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>
drivers/net/ethernet/huawei/hinic/hinic_devlink.c
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h