]> 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)
commit8bb9dfa21b06b5769e787b73e65c1c56640652e5
tree948124f26b949a83a13a94a2f1f2401b341fdaed
parent78ead4d9ff0bb9e8ddb9a3f154b5b51ed81b368a
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