]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f2f8338c091e4cba0c895086af40d6527bd418a
tree948124f26b949a83a13a94a2f1f2401b341fdaed
parent25a3b04aa9b029b9c97683cfcca8ec93e93e502c
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